-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Improve handling of security group changes #11276
Comments
efs_mount_target is also affected. |
Hey @cbarbour – Regarding The behavior between the two environments is different; In Classic, you cannot change the security group without rebooting the instance. Because Terraform does not support rebooting instances, you get the behavior of destroying the instance and recreating it with a Security Group change. VPC instances can have the groups changed without a reboot, so that operation is a simple update and does not require recreation. I see that that
The difference in behavior and the slight inconsistency in the API are two of the reasons they are split out into separate options. The EC2 commit you reference, 564dd36 (#5193) , was reverted in e9c4d4f (#5571). The ChangeLog is maintained by humans so there’s always the chance of error, however the revert would explain why #5193 is not mentioned there. I modified your example to use a VPC and use
The same rational is applied to DB Instances; DB Instances in the Classic environment have specialized behavior and need to use the Regarding on v0.8.4 "Change ignored on aws_instances” can you clarify if you used the configuration above, and that you were changing the It’s not clear to me how ALBs or EFS Mount targets are affected here, could you please clarify? Thanks! |
Hey I'm going to close this for now. If you have any more information please let me know! |
Sorry, I missed your previous response. I'll ensure that my configuration matches your comments, and update if I have any further problems. |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Affected Resource(s)
Probably not a core issue.
Terraform Configuration Files
Steps to reproduce
Expected Behavior
Actual Behavior
Varies by Terraform release
0.8.1
0.8.4:
Important Factoids
0.8.1 behavior is dangerous and could result in unexpected data loss if user fails to check plan before applying change; user has no reason to expect changing a SG will destroy an EC2 instance.
It would have been good to track these changes with issues so that they appear in the changelog.
References
The text was updated successfully, but these errors were encountered: