-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Cannot change a MIG from stateful to stateless #10266
Cannot change a MIG from stateful to stateless #10266
Comments
Okay - I think I can see where this problem comes from, thanks for the report. I think we are probably not sending the empty |
I would like to fix this |
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. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v0.14.8
Affected Resource(s)
Terraform Configuration Files
The problem arises when the commented-out parts are applied (making the MIG stateful) and then removed (making it stateless).
Debug Output
This output is what we get when applying the Terraform above (with the stateful configuration removed). What we can see is that the PATCH to the MIG does not touch the Stateful Policy.
https://gist.github.com/srjturner/16505ed454e13d3956a3524031cbc52d
Expected Behavior
The MIG should have had its Stateful Policy removed so that it no longer was stateful, and so that it did not expect the Instance Template to have the (stateful) disk.
Actual Behavior
The MIG does not have its Stateful Policy removed, and it fails to accept the Instance Template because that has no longer got the expected disk.
Steps to Reproduce
terraform apply -auto-approve
with the commented lines uncommented to make the MIG statefulterraform apply -auto-approve
Note
If we issue a command line call to remove the SP:
then we can then successfully apply the Terraform without the SP and disk
The text was updated successfully, but these errors were encountered: