How can I add/remove security groups on running ec2 instances which is not included in VPC

amazon ec2amazon-vpcamazon-web-services

I want to change the security group on running ec2 instance which is not included in VPC. I read that this is possible only if my instance is running in VPC.

I tried to create a VPC and include my running instance in the active VPC by creating new network interfaces, and this is not possible as well.

Do you have any ideas how can I add/remove security groups on running ec2 instances?

Best Answer

After you launch an instance in EC2-Classic, you can't change its security groups. The same does not apply to VPC (Amazon EC2 Security Groups).

You could try creating AMI from current instance and then launch new instance with appropriate security groups.