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

Error: Unsupported block type #125

Open
scottwilkin opened this issue Jun 9, 2023 · 5 comments
Open

Error: Unsupported block type #125

scottwilkin opened this issue Jun 9, 2023 · 5 comments
Labels
bug 🐛 An issue with the system

Comments

@scottwilkin
Copy link

Describe the Bug

╷
│ Error: Unsupported block type
│ 
│   on .terraform/modules/codebuild/main.tf line 414, in resource "aws_codebuild_project" "default":
│  414:     dynamic "auth" {
│ 
│ Blocks of type "auth" are not expected here.
╵

Expected Behavior

Running the module does not throw this error

Steps to Reproduce

Try running terraform plan with the latest version of the Terraform AWS provider on a Macbook M2 Pro Max with the darwin_arm64 architecture.

  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 5.1.0"
    }
  }

Screenshots

No response

Environment

  • OS: Mac OS Ventura (M2 Max)
  • Version: 13.3.1
  • Module Version: 1.0.0
  • Terraform Version: 1.4.6
  • Platform: darwin_arm64
  • AWS Provider Version: 5.1.0

Additional Context

No response

@scottwilkin scottwilkin added the bug 🐛 An issue with the system label Jun 9, 2023
@dan100110
Copy link

I am getting the exact same issue on a WSL environment.
Module version: 0.39.0
Terraform version: 1.4.6
platform: WSL Windows Ubuntu 20.x
AWS: 5.3.0

@dan100110
Copy link

figured out the issue. AWS provider 5.x has removed some deprecated blocks. use aws provider <5

@Umair841
Copy link

i am having the same issue.
please update your terraform code as auth block is deprecated i guess

Error: Unsupported block type │ │ on .terraform/modules/pipeline-2.codebuild/main.tf line 414, in resource "aws_codebuild_project" "default": │ 414: dynamic "auth" { │ │ Blocks of type "auth" are not expected here.

@neubig
Copy link

neubig commented Jul 18, 2023

This PR by @max-lobur should fix the issue I believe: #126

@stevie-
Copy link

stevie- commented Sep 11, 2023

This PR by @max-lobur should fix the issue I believe: #126

This won't fix the removed block source.auth
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-5-upgrade#resourceaws_codebuild_project

This block is gone.

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

5 participants