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

Vpc security group ids #1153

Closed

Conversation

ColinHebert
Copy link
Contributor

In a VPC environment the security groups on instances can be changed without having to recreate the instance.

The current security_groups parameter forces the recreation of the instance. To allow VPC users to change their configuration, a different parameter can be used (vpc_security_groups_ids, which matches the model we have in aws_db_instance).

This PR adds the said parameter

Should be a first step to fix #749

sgs[i] = sg.Id
}
// Keep some backward compatibility. The user is warned on creation.
if d.Get("security_groups") != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should prevent the recreation of instances in VPC when the user is still using security_groups in a VPC environment.

It should be removed at some stage.

@catsby
Copy link
Contributor

catsby commented Mar 16, 2015

Hey @ColinHebert , thanks for the contribution!
We've recently migrated to aws-sdk-go, so this is now out of date, can you try updating with master?

Let me know if you have any questions

var g ec2.SecurityGroup
g.Id = str

runOpts.SecurityGroups = append(runOpts.SecurityGroups, g)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be runOpts.SecurityGroupIDs ?
SecurityGroups is a collection of Security Group names.

@catsby
Copy link
Contributor

catsby commented Apr 15, 2015

succeeded by #1539 , which is up to date with master

@catsby catsby closed this Apr 15, 2015
@ojongerius ojongerius deleted the vpc_security_group_ids branch July 16, 2015 01:04
@ghost
Copy link

ghost commented May 1, 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 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement provider/aws waiting-response An issue/pull request is waiting for a response from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No need to recreate aws instances to update security_groups
2 participants