About this task
You can change the security group assigned to an instance. This allows you to maintain a set of security groups for different purposes and to flexible switch which security group an instance is currently using. See Changing the security group.