terraform-aws-ecs-web-app icon indicating copy to clipboard operation
terraform-aws-ecs-web-app copied to clipboard

examples/without_authentication will raise many Error: Unsupported Terraform Core version

Open paulcrussell opened this issue 4 years ago • 2 comments
trafficstars

module "default_backend_web_app" {
  source  = "cloudposse/ecs-web-app/aws//examples/without_authentication"
  version = "0.62.0"
  certificate_arn = "xxx"
  enabled = true
  environment = "dev"
  id_length_limit = "0"
  label_order = ["namespace", "environment", "stage", "name", "attributes"]
  name = "sunrise-spa"
  namespace = "houseplants"
  stage = "build"
  default_container_image = "xxx"
}

There are many errors

Example is

│ Error: Unsupported Terraform Core version
│
│   on .terraform\modules\default_backend_web_app.subnets.public_label\versions.tf line 2, in terraform:
│    2:   required_version = ">= 0.12.0, < 0.14.0"
│
│ Module module.default_backend_web_app.module.subnets.module.public_label (from
│ git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.19.2) does not support Terraform version 1.0.0. To       
│ proceed, either choose another supported Terraform version or update this version constraint. Version constraints are normally  
│ set for good reason, so updating the constraint may lead to other errors or unexpected behavior.

paulcrussell avatar Jun 25 '21 13:06 paulcrussell

I tracked the issue down to old version for subnets resource in https://github.com/cloudposse/terraform-aws-ecs-web-app/blob/b84ca6fe3beefa9282761e2adc28243ec9c20127/examples/without_authentication/main.tf

paulcrussell avatar Jun 25 '21 13:06 paulcrussell

Perhaps we need to bump up the modules in our examples. For now, I would use the latest versions of the modules to workaround the issue.

nitrocode avatar Jun 19 '22 04:06 nitrocode