I want to assign a security group to an existing instance. Is this possible?
Asked
Active
Viewed 3,671 times
2 Answers
2
Now you can:
In the Horizon web interface provided that you have a pretty recent version of Horizon, i.e. >= Grizzly: Change security group:
It's possible to change the security groups on the fly using Horizon, if you're using the latest release Grizzly. Click on the "More" button for the instance you want to update and you should see an "Edit Security Groups" option.
In the CLI, use nova help add-secgroup
The code for this was added a year ago so I believe this should be available in Folsom.

Franck Dernoncourt
- 1,022
- 2
- 14
- 32
0
Create a new security group called new.
Get the id of your image (<image-id>
)
select id from security_groups where name = 'new' ;
update security_group_instance_association set security_group_id=<security-group-id> where instance_id=<image-id> ;
-
Where are we supposed to run this query? – Franck Dernoncourt Apr 06 '13 at 02:03