Chethiya Gunawardana
Chethiya Gunawardana

Reputation: 31

AWS ECS capacity provider using Terraform v 0.11.10

I am using terraform version 0.11.10, I am trying to provision an aws ecs capacity provider but getting the following error:

Error: module.mod.aws_ecs_capacity_provider.ecs: Provider doesn't support resource: aws_ecs_capacity_provider

I could not find any terraform docs for version 0.11

Does terraform version 0.11.10 supports capacity provider?

Upvotes: 2

Views: 376

Answers (2)

Chethiya Gunawardana
Chethiya Gunawardana

Reputation: 31

After updating the aws provider version the issue got fixed.

Upvotes: 1

mjgpy3
mjgpy3

Reputation: 8937

The AWS provider is versioned separately from terraform itself. According to the provider's changelog that resource was added in version 2.42.0 (December 13, 2019).

For more information on provider versions I would checkout the terraform documentation.

In short, you may need to pin the AWS provider to a newer version than you're currently using. Pinning is described in the linked documentation.

Upvotes: 0

Related Questions