-
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
provider/aws: Fix issue with updating VPC Security Group IDs for an Instance #1618
Conversation
assocIds := []*string{} | ||
publicIps := []*string{} | ||
var publicIps []*string | ||
var assocIds []*string |
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.
The test was failing to create the EIP because of this. While this fixes this particular acceptance test, #1598 may be a better solution long term
This fixes the issue for me 👍 |
Working fine for us as well. |
works great for me 👍 |
…nstance Currently, we weren't correctly setting the ids, and are setting both `security_groups` and `vpc_security_group_ids`. As a result, we really only use the former. We also don't actually update the latter in the `update` method. This PR fixes both issues, correctly reading `security_groups` vs. `vpc_security_group_ids` and allows users to update the latter without destroying the Instance when in a VPC.
e79c5f1
to
036d199
Compare
LGTM! |
provider/aws: Fix issue with updating VPC Security Group IDs for an Instance
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. |
Currently, we aren't correctly setting the ids, and are setting both
security_groups
andvpc_security_group_ids
in the state. As a result, we really only usethe former, but the latter never goes away in the state file 😦
We also don't actually update the remote security groups in the
update
method.This PR fixes both issues, correctly reading
security_groups
vs.vpc_security_group_ids
and allows users to update the latter withoutdestroying the Instance when in a VPC.
Should fix #1611