-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/aws_codebuild_fleet: Allow scaling_configuration
to be removed on Update
#40773
r/aws_codebuild_fleet: Allow scaling_configuration
to be removed on Update
#40773
Conversation
Community NoteVoting for Prioritization
For Submitters
|
scaling_configuration
to be removed on Update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccCodeBuildFleet_' PKG=codebuild ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/codebuild/... -v -count 1 -parallel 3 -run=TestAccCodeBuildFleet_ -timeout 360m
2025/01/07 15:47:49 Initializing Terraform AWS Provider...
=== RUN TestAccCodeBuildFleet_basic
=== PAUSE TestAccCodeBuildFleet_basic
=== RUN TestAccCodeBuildFleet_disappears
=== PAUSE TestAccCodeBuildFleet_disappears
=== RUN TestAccCodeBuildFleet_tags
=== PAUSE TestAccCodeBuildFleet_tags
=== RUN TestAccCodeBuildFleet_baseCapacity
=== PAUSE TestAccCodeBuildFleet_baseCapacity
=== RUN TestAccCodeBuildFleet_computeConfiguration
=== PAUSE TestAccCodeBuildFleet_computeConfiguration
=== RUN TestAccCodeBuildFleet_computeType
=== PAUSE TestAccCodeBuildFleet_computeType
=== RUN TestAccCodeBuildFleet_environmentType
=== PAUSE TestAccCodeBuildFleet_environmentType
=== RUN TestAccCodeBuildFleet_imageId
=== PAUSE TestAccCodeBuildFleet_imageId
=== RUN TestAccCodeBuildFleet_scalingConfiguration
=== PAUSE TestAccCodeBuildFleet_scalingConfiguration
=== RUN TestAccCodeBuildFleet_vpcConfig
=== PAUSE TestAccCodeBuildFleet_vpcConfig
=== CONT TestAccCodeBuildFleet_basic
=== CONT TestAccCodeBuildFleet_computeType
=== CONT TestAccCodeBuildFleet_scalingConfiguration
--- PASS: TestAccCodeBuildFleet_basic (44.08s)
=== CONT TestAccCodeBuildFleet_vpcConfig
--- PASS: TestAccCodeBuildFleet_computeType (64.88s)
=== CONT TestAccCodeBuildFleet_baseCapacity
--- PASS: TestAccCodeBuildFleet_scalingConfiguration (90.06s)
=== CONT TestAccCodeBuildFleet_computeConfiguration
--- PASS: TestAccCodeBuildFleet_vpcConfig (81.96s)
=== CONT TestAccCodeBuildFleet_tags
--- PASS: TestAccCodeBuildFleet_baseCapacity (63.24s)
=== CONT TestAccCodeBuildFleet_environmentType
--- PASS: TestAccCodeBuildFleet_computeConfiguration (65.88s)
=== CONT TestAccCodeBuildFleet_disappears
--- PASS: TestAccCodeBuildFleet_environmentType (63.36s)
=== CONT TestAccCodeBuildFleet_imageId
--- PASS: TestAccCodeBuildFleet_disappears (56.13s)
--- PASS: TestAccCodeBuildFleet_tags (86.45s)
--- PASS: TestAccCodeBuildFleet_imageId (44.16s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/codebuild 240.975s
@kamilturek Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.83.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Description
This PR fixes removing the
scaling_configuration
block argument on update. An emptyScalingConfigurationInput
struct needs to be passed to theUpdateFleet
action in order to actually remove the scaling configuration.Relations
Closes #40345.
References
https://docs.aws.amazon.com/codebuild/latest/APIReference/API_UpdateFleet.html
Output from Acceptance Testing