You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for providing this great open source library!
I am trying to run the examples/complete example from the repo and encounter several errors regarding "unsupported block type" etc.. Terraform init seems to work fine, but terraform plan throws several errors (pasted below).
Expected Behavior
I would expect terraform plan to complete successfully.
Steps to Reproduce
Install terraform from apt-get on ubuntu. Then run the following
git clone [email protected]:cloudposse/terraform-aws-ecs-codepipeline.git
cd terraform-aws-ecs-codepipeline/examples/complete
terraform init
terraform plan
Screenshots
init log:
$ terraform init
Initializing the backend...
Initializing modules...
Downloading registry.terraform.io/cloudposse/ecs-container-definition/aws 0.46.1 for container_definition...
- container_definition in .terraform/modules/container_definition
Downloading registry.terraform.io/cloudposse/ecs-alb-service-task/aws 0.42.3 for ecs_alb_service_task...
- ecs_alb_service_task in .terraform/modules/ecs_alb_service_task
Downloading registry.terraform.io/cloudposse/label/null 0.22.1 for ecs_alb_service_task.exec_label...
- ecs_alb_service_task.exec_label in .terraform/modules/ecs_alb_service_task.exec_label
Downloading registry.terraform.io/cloudposse/label/null 0.22.1 for ecs_alb_service_task.service_label...
- ecs_alb_service_task.service_label in .terraform/modules/ecs_alb_service_task.service_label
Downloading registry.terraform.io/cloudposse/label/null 0.22.1 for ecs_alb_service_task.task_label...
- ecs_alb_service_task.task_label in .terraform/modules/ecs_alb_service_task.task_label
Downloading registry.terraform.io/cloudposse/label/null 0.22.0 for ecs_alb_service_task.this...
- ecs_alb_service_task.this in .terraform/modules/ecs_alb_service_task.this
- ecs_codepipeline in ../..
Downloading registry.terraform.io/cloudposse/codebuild/aws 1.0.0 for ecs_codepipeline.codebuild...
- ecs_codepipeline.codebuild in .terraform/modules/ecs_codepipeline.codebuild
Downloading registry.terraform.io/cloudposse/label/null 0.25.0 for ecs_codepipeline.codebuild.this...
- ecs_codepipeline.codebuild.this in .terraform/modules/ecs_codepipeline.codebuild.this
Downloading registry.terraform.io/cloudposse/label/null 0.25.0 for ecs_codepipeline.codebuild_label...
- ecs_codepipeline.codebuild_label in .terraform/modules/ecs_codepipeline.codebuild_label
Downloading registry.terraform.io/cloudposse/label/null 0.25.0 for ecs_codepipeline.codepipeline_assume_role_label...
- ecs_codepipeline.codepipeline_assume_role_label in .terraform/modules/ecs_codepipeline.codepipeline_assume_role_label
Downloading registry.terraform.io/cloudposse/label/null 0.25.0 for ecs_codepipeline.codepipeline_label...
- ecs_codepipeline.codepipeline_label in .terraform/modules/ecs_codepipeline.codepipeline_label
Downloading registry.terraform.io/cloudposse/label/null 0.25.0 for ecs_codepipeline.codepipeline_s3_policy_label...
- ecs_codepipeline.codepipeline_s3_policy_label in .terraform/modules/ecs_codepipeline.codepipeline_s3_policy_label
Downloading registry.terraform.io/cloudposse/label/null 0.25.0 for ecs_codepipeline.codestar_label...
- ecs_codepipeline.codestar_label in .terraform/modules/ecs_codepipeline.codestar_label
Downloading registry.terraform.io/cloudposse/repository-webhooks/github 0.13.0 for ecs_codepipeline.github_webhooks...
- ecs_codepipeline.github_webhooks in .terraform/modules/ecs_codepipeline.github_webhooks
Downloading registry.terraform.io/cloudposse/label/null 0.25.0 for ecs_codepipeline.github_webhooks.this...
- ecs_codepipeline.github_webhooks.this in .terraform/modules/ecs_codepipeline.github_webhooks.this
Downloading registry.terraform.io/cloudposse/label/null 0.25.0 for ecs_codepipeline.this...
- ecs_codepipeline.this in .terraform/modules/ecs_codepipeline.this
Downloading registry.terraform.io/cloudposse/dynamic-subnets/aws 0.39.3 for subnets...
- subnets in .terraform/modules/subnets
Downloading registry.terraform.io/cloudposse/label/null 0.24.1 for subnets.nat_instance_label...
- subnets.nat_instance_label in .terraform/modules/subnets.nat_instance_label
Downloading registry.terraform.io/cloudposse/label/null 0.24.1 for subnets.nat_label...
- subnets.nat_label in .terraform/modules/subnets.nat_label
Downloading registry.terraform.io/cloudposse/label/null 0.24.1 for subnets.private_label...
- subnets.private_label in .terraform/modules/subnets.private_label
Downloading registry.terraform.io/cloudposse/label/null 0.24.1 for subnets.public_label...
- subnets.public_label in .terraform/modules/subnets.public_label
Downloading registry.terraform.io/cloudposse/label/null 0.24.1 for subnets.this...
- subnets.this in .terraform/modules/subnets.this
Downloading registry.terraform.io/cloudposse/utils/aws 0.8.0 for subnets.utils...
- subnets.utils in .terraform/modules/subnets.utils
Downloading registry.terraform.io/cloudposse/label/null 0.24.1 for subnets.utils.this...
- subnets.utils.this in .terraform/modules/subnets.utils.this
Downloading registry.terraform.io/cloudposse/label/null 0.25.0 for this...
- this in .terraform/modules/this
Downloading registry.terraform.io/cloudposse/vpc/aws 0.18.1 for vpc...
- vpc in .terraform/modules/vpc
Downloading registry.terraform.io/cloudposse/label/null 0.22.0 for vpc.label...
- vpc.label in .terraform/modules/vpc.label
Downloading registry.terraform.io/cloudposse/label/null 0.22.0 for vpc.this...
- vpc.this in .terraform/modules/vpc.this
Initializing provider plugins...
- Finding hashicorp/random versions matching ">= 2.1.0"...
- Finding hashicorp/aws versions matching ">= 2.0.0"...
- Finding hashicorp/local versions matching ">= 1.2.0, >= 1.3.0"...
- Finding hashicorp/null versions matching ">= 2.0.0"...
- Finding hashicorp/template versions matching ">= 2.0.0"...
- Finding integrations/github versions matching ">= 4.2.0"...
- Installing hashicorp/null v3.2.1...
- Installed hashicorp/null v3.2.1 (signed by HashiCorp)
- Installing hashicorp/template v2.2.0...
- Installed hashicorp/template v2.2.0 (signed by HashiCorp)
- Installing integrations/github v5.31.0...
- Installed integrations/github v5.31.0 (signed by a HashiCorp partner, key ID 38027F80D7FD5FB2)
- Installing hashicorp/random v3.5.1...
- Installed hashicorp/random v3.5.1 (signed by HashiCorp)
- Installing hashicorp/aws v5.8.0...
- Installed hashicorp/aws v5.8.0 (signed by HashiCorp)
- Installing hashicorp/local v2.4.0...
- Installed hashicorp/local v2.4.0 (signed by HashiCorp)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
plan log
$ terraform plan -var-file=fixtures.us-east-2.tfvars
╷
│ Warning: Argument is deprecated
│
│ with module.ecs_codepipeline.aws_s3_bucket.default,
│ on ../../main.tf line 16, in resource "aws_s3_bucket" "default":
│ 16: acl = "private"
│
│ Use the aws_s3_bucket_acl resource instead
│
│ (and 3 more similar warnings elsewhere)
╵
╷
│ Error: Unsupported block type
│
│ on .terraform/modules/ecs_codepipeline.codebuild/main.tf line 414, in resource "aws_codebuild_project" "default":
│ 414: dynamic "auth" {
│
│ Blocks of type "auth" are not expected here.
╵
╷
│ Error: Unsupported argument
│
│ on .terraform/modules/vpc/main.tf line 22, in resource "aws_vpc" "default":
│ 22: enable_classiclink = var.enable_classiclink
│
│ An argument named "enable_classiclink" is not expected here.
╵
╷
│ Error: Unsupported argument
│
│ on .terraform/modules/vpc/main.tf line 23, in resource "aws_vpc" "default":
│ 23: enable_classiclink_dns_support = var.enable_classiclink_dns_support
│
│ An argument named "enable_classiclink_dns_support" is not expected here.
Environment
OS: Ubuntu 22.04
Terraform: v1.5.3
Module: Latest main branch
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Describe the Bug
Thanks for providing this great open source library!
I am trying to run the
examples/complete
example from the repo and encounter several errors regarding "unsupported block type" etc.. Terraform init seems to work fine, but terraform plan throws several errors (pasted below).Expected Behavior
I would expect terraform plan to complete successfully.
Steps to Reproduce
Install terraform from apt-get on ubuntu. Then run the following
Screenshots
init log:
plan log
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: