Skip to content
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

Merged
merged 1 commit into from
Apr 29, 2015

Conversation

catsby
Copy link
Contributor

@catsby catsby commented Apr 21, 2015

Currently, we aren't correctly setting the ids, and are setting both
security_groups and vpc_security_group_ids in the state. As a result, we really only use
the 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 without
destroying the Instance when in a VPC.

Should fix #1611

assocIds := []*string{}
publicIps := []*string{}
var publicIps []*string
var assocIds []*string
Copy link
Contributor Author

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

@radeksimko
Copy link
Member

This fixes the issue for me 👍

@pmoust
Copy link
Contributor

pmoust commented Apr 24, 2015

Working fine for us as well.

@mzupan
Copy link
Contributor

mzupan commented Apr 28, 2015

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.
@catsby catsby force-pushed the b-aws-fix-vpc-security-id-update branch from e79c5f1 to 036d199 Compare April 29, 2015 15:04
@catsby
Copy link
Contributor Author

catsby commented Apr 29, 2015

rebased on master to pick up changes from #1701 /cc @phinze

@phinze
Copy link
Contributor

phinze commented Apr 29, 2015

LGTM!

catsby added a commit that referenced this pull request Apr 29, 2015
provider/aws: Fix issue with updating VPC Security Group IDs for an Instance
@catsby catsby merged commit daeaba5 into master Apr 29, 2015
@catsby catsby deleted the b-aws-fix-vpc-security-id-update branch April 29, 2015 15:39
@ghost
Copy link

ghost commented May 3, 2020

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.

@ghost ghost locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

modify/attach/detach secururity group on vpc instance
5 participants