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

RDS --vpc-security-group-ids does not support multiple groups #574

Closed
motilevy opened this issue Jan 2, 2014 · 3 comments
Closed

RDS --vpc-security-group-ids does not support multiple groups #574

motilevy opened this issue Jan 2, 2014 · 3 comments

Comments

@motilevy
Copy link

motilevy commented Jan 2, 2014

I used to use this command with the old RDS tools:

rds-modify-db-instance myinstance --region=us-west-1 --vpc-security-group-ids sg-one, sg-two

When trying to apply the same command using "aws rds" it fails:

aws rds modify-db-instance --db-instance-identifier myinstance --vpc-security-group-ids sg-one, sg-two

with the following :

A client error (InvalidParameterValue) occurred when calling the ModifyDBInstance operation: Invalid security group , groupId= sg-one, sg-two,, groupName=.

running the command with a single group works fine:

 aws rds modify-db-instance --db-instance-identifier myinstance --vpc-security-group-ids sg-one  
@garnaat
Copy link
Contributor

garnaat commented Jan 2, 2014

You should be able to supply multiple security group names as space-separated values for the --vpc-security-group-ids option, as in:

aws rds modify-db-instance --vpc-security-group-ids sg-one sg-two --db-instance-identifier <...>

@motilevy
Copy link
Author

motilevy commented Jan 2, 2014

that worked!
updating to the latest aws version also shows this in the help section, which i missed.
thanks!

@motilevy motilevy closed this as completed Jan 2, 2014
@mikebiglan
Copy link

Worked for me as well. Thanks! The AWS docs here: http://docs.aws.amazon.com/AmazonRDS/latest/CommandLineReference/CLIReference-cmd-CreateDBInstance.html
are incorrect with this example:
--vpc-security-group-ids sg-e763f78e, sg-e0690405

This should be space-separated, not comma-separated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants