-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
resource/aws_batch_compute_environment: Propose resource recreation when updating compute_resources configuration block tags argument #10937
Conversation
…ing compute_resources configuration block tags argument Reference: #2696 Reference: https://docs.aws.amazon.com/batch/latest/APIReference/API_UpdateComputeEnvironment.html The upstream API does not support updating compute resource tags, therefore we update Terraform to propose resource recreation when they are modified instead of perpetually showing a difference. Output from acceptance testing: ``` --- PASS: TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources (20.68s) --- PASS: TestAccAWSBatchComputeEnvironment_createSpotWithoutBidPercentage (23.28s) --- PASS: TestAccAWSBatchComputeEnvironment_createUnmanaged (44.92s) --- PASS: TestAccAWSBatchComputeEnvironment_createEc2 (45.81s) --- PASS: TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources (55.24s) --- PASS: TestAccAWSBatchComputeEnvironment_launchTemplate (57.90s) --- PASS: TestAccAWSBatchComputeEnvironment_createSpot (58.45s) --- PASS: TestAccAWSBatchComputeEnvironment_createEc2WithTags (60.50s) --- PASS: TestAccAWSBatchComputeEnvironment_updateMaxvCpus (76.98s) --- PASS: TestAccAWSBatchComputeEnvironment_updateState (77.05s) --- PASS: TestAccAWSBatchComputeEnvironment_updateInstanceType (84.66s) --- PASS: TestAccAWSBatchComputeEnvironment_updateComputeEnvironmentName (91.90s) ```
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
This has been released in version 2.39.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 for triage. Thanks! |
…ing compute_resources configuration block tags argument (hashicorp#10937) Reference: hashicorp#2696 Reference: https://docs.aws.amazon.com/batch/latest/APIReference/API_UpdateComputeEnvironment.html The upstream API does not support updating compute resource tags, therefore we update Terraform to propose resource recreation when they are modified instead of perpetually showing a difference. Output from acceptance testing: ``` --- PASS: TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources (20.68s) --- PASS: TestAccAWSBatchComputeEnvironment_createSpotWithoutBidPercentage (23.28s) --- PASS: TestAccAWSBatchComputeEnvironment_createUnmanaged (44.92s) --- PASS: TestAccAWSBatchComputeEnvironment_createEc2 (45.81s) --- PASS: TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources (55.24s) --- PASS: TestAccAWSBatchComputeEnvironment_launchTemplate (57.90s) --- PASS: TestAccAWSBatchComputeEnvironment_createSpot (58.45s) --- PASS: TestAccAWSBatchComputeEnvironment_createEc2WithTags (60.50s) --- PASS: TestAccAWSBatchComputeEnvironment_updateMaxvCpus (76.98s) --- PASS: TestAccAWSBatchComputeEnvironment_updateState (77.05s) --- PASS: TestAccAWSBatchComputeEnvironment_updateInstanceType (84.66s) --- PASS: TestAccAWSBatchComputeEnvironment_updateComputeEnvironmentName (91.90s) ```
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #2696
Reference: https://docs.aws.amazon.com/batch/latest/APIReference/API_UpdateComputeEnvironment.html
Release note for CHANGELOG:
The upstream API does not support updating compute resource tags, therefore we update Terraform to propose resource recreation when they are modified instead of perpetually showing a difference.
Output from acceptance testing: