hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.87k stars 9.21k forks source link

[Bug]: aws_codebuild_project compute_type doesn't support BUILD_GENERAL1_XLARGE #40283

Open lilanthadv opened 1 week ago

lilanthadv commented 1 week ago

Terraform Core Version

1.7.1

AWS Provider Version

5.2.0

Affected Resource(s)

aws_codebuild_project -> compute_type

Expected Behavior

Need to support BUILD_GENERAL1_LARGE type

AWS document

https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ProjectEnvironment.html

AWS changed types BUILD_GENERAL1_LARGE -> BUILD_GENERAL1_XLARGE Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.

Screenshot 2024-11-23 at 08 27 15

But that change is not reflected in the terraform. Terraform not support - BUILD_GENERAL1_XLARGE

Screenshot 2024-11-23 at 08 28 20

Actual Behavior

Previously I used BUILD_GENERAL1_LARGE computer type for by code build and It's worked fine. But When I run "terraform plan" now. It's showing.

Screenshot 2024-11-23 at 08 35 03

So I changed my terraform code to use "BUILD_GENERAL1_XLARGE". But it's throwing below error. I cannot use it anymore.

"Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type"

Screenshot 2024-11-23 at 08 36 22

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

Screenshot 2024-11-23 at 08 39 51

Steps to Reproduce

aws_codebuild_project - compute_type use BUILD_GENERAL1_XLARGE

Screenshot 2024-11-23 at 08 39 51

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 1 week ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

jeremychauvet commented 1 week ago

Hello @lilanthadv 👋🏼

I've read on the description you're using the version 5.2.0 of the provider, Am I right? This version has been released on Jun 9, 2023, and is currently outdated: latest version is v5.77.0.

Reviewing the AWS SDK Go v2 configuration, I've successfully found the configuration you're wanted to used, added 10 months ago.

➡️ In my opinion, the root cause of this issue is that the provider version you're using doesn't include the AWS SDK for Go version that introduced this feature.

Could you please update your configuration to use the latest provider version (5.77.0) and try again? If you need assistance with this step, feel free to let me know!