-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Bug fix for issue 3268 #3508
Bug fix for issue 3268 #3508
Conversation
#3268 This seems to arise via explicit use of the 'state' variable.
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.
Hi @wattdave, thanks for this fix! While the fix looks correct, would you have time to create a proper acceptance test for updating the state
rather than modifying these two existing test configurations? If not, that's okay too. 👍
Basically, you should be able to copy one of the existing acceptance tests like TestAccAWSBatchComputeEnvironment_updateInstanceType
and create a new configuration that changes only the state. We can explicitly look for the attribute to be set correctly in the state with something like resource.TestCheckResourceAttr("aws_batch_compute_environment.ec2", "state", "DISABLED"),
@bflad Here you go; it includes a test that illustrates the explicit overwrite of the service role that causes grief when trying to change an existing compute environment. Actually on re-reading your suggestion I realize I didn't do what you asked. Sec... |
@bflad This seems gtg now - are these tests what you want? |
The acceptance test is failing currently, but I'll fix it on merge.
|
Merged into master and will release with v1.11.0 of the AWS provider. Thanks so much! |
This has been released in version 1.11.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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! |
#3268
This seems to arise via explicit use of the 'state' variable.