Change Security Groups on EC2

It is difficult to change the secuirty group which an EC2 instance is assigned once its running

However one way to accomplish this is

1. Right click on instance and select "Create Image (EBS AMI). For example if the instance is called staging-srv.

2. Give the image a name and description and then create

3. Create your new security group and define required security measures e.g. inbound ports

4. Create a new EC2 instance based on the above created image.

5. If a elastic IP is assigned to staging-srv then disassoicate it

5. Launch the new instance

6. Associate the elastic IP with the new instance

6. Rename the old instance to e.g. staging-srv to staging-srv-old

7. Name the new instance staging-srv

8. Test your new instance with the new security group

9. Once happy it works delete the old ECS instance.


  1. Assessing potential threats is essential to detect vulnerabilities. An effective cyber security strategy includes vulnerability assessment services and strategies to secure data and system in order to avoid potential risk. Thank you for sharing this.


Post a Comment

Popular posts from this blog

ActiveMQ, easy to use open source message oriented middleware (MOM)

Basic Send Message to MQ with Java and IBM MQ JMS

Apache Apollo