Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic auth block bug from cloudposse/codebuild/aws/1.0.0 #120

Closed
Roondel opened this issue Dec 20, 2023 · 1 comment
Closed

dynamic auth block bug from cloudposse/codebuild/aws/1.0.0 #120

Roondel opened this issue Dec 20, 2023 · 1 comment
Labels
bug 🐛 An issue with the system

Comments

@Roondel
Copy link
Contributor

Roondel commented Dec 20, 2023

Describe the Bug

ecs-codepipeline has a hardcoded dependency for the code build module. this is calling version 1.0.0 instead of latest 2.0.1 in which the dynamic block has been removed in commit id: 0586277 (release v.2.0.0) line 414.
cloudposse/terraform-aws-codebuild@0586277

 dynamic "auth" {
  for_each = var.private_repository ? [""] : []
  content {
    type     = "OAUTH"
    resource = join("", aws_codebuild_source_credential.authorization.*.id)
  }
}

This dynamic block is resulting in the following error:

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.

Expected Behavior

terraform to perform a successful plan without error.

Steps to Reproduce

Call the latest version ecs-codepipeline from terraform registry. version = 0.33.0

https://registry.terraform.io/modules/cloudposse/ecs-codepipeline/aws/0.33.0

Screenshots

image
image

Environment

cloudposse/ecs-codepipeline/aws = v0.33.0
cloudposse/codebuild/aws = v1.0.0

Additional Context

apologies in advance if this is not the correct format to report a issue with a terraform module. I am new to github and coding in general.

@Roondel Roondel added the bug 🐛 An issue with the system label Dec 20, 2023
@Roondel
Copy link
Contributor Author

Roondel commented Apr 6, 2024

resolved with PR#128

@Roondel Roondel closed this as completed Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant