CircleCI-Public / circleci-demo-aws-ecs-ecr

A demo project for deployment to AWS ECS from ECR on CircleCI 2.0.
https://circleci.com/gh/CircleCI-Public/circleci-demo-aws-ecs-ecr
MIT License
107 stars 111 forks source link

AWS provider no longer compatible with latest version of terraform #7

Open Maelstromeous opened 4 years ago

Maelstromeous commented 4 years ago

Hi,

The provider constraints within this project version = "~> 1.35" unfortunately is no longer compatible with the later versions of terraform.

Error given:

terraform init    

Initializing the backend...

Initializing provider plugins...
- Checking for available provider plugins...

Provider {"aws"} v1.60.0 is not compatible with Terraform 0.12.9.

Provider version 2.7.0 is the earliest compatible version. Select it with 
the following version constraint:

    version = "~> 2.7"

Terraform checked all of the plugin versions matching the given constraint:
    ~> 1.35

Consult the documentation for this provider for more information on
compatibility between provider and Terraform versions.

Error: incompatible provider version

Changing the version number to "~> 2.0" seems to work however.

lokst commented 4 years ago

Thanks for highlighting this @Maelstromeous , at the moment terraform v0.11 would be required to run the setup.

lokst commented 4 years ago

Resolved by https://github.com/CircleCI-Public/circleci-demo-aws-ecs-ecr/pull/8

lokst commented 4 years ago

Reopened as the issue still exists in the orbs and without_orbs branches.