Why does EC2 instance terminates when stopped

0 votes

Everytime I stop my AWS EC2 instance, it terminates automatically with a few seconds. Additionally a new instance is created. Can anyone suggest why this would be happening?

Oct 8, 2018 in AWS by datageek
• 2,530 points
1,627 views

1 answer to this question.

0 votes

Because it is part of an Auto Scaling group.

According to AWS Support, it is normal behavior to Terminate an instance when you tell it to Stop if it is part of an Auto Scaling group. My Termination Protection was set to Stop but apparently, it overrides this setting.

In order to Stop an instance that's part of an Auto Scaling group and NOT Terminate it, you must Detach it from the Auto Scaling group before stopping it:

http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/detach-instance-asg.html

answered Oct 8, 2018 by Archana
• 4,150 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

Why does Amazon ECS launch tasks when trying to launch containers?

Docker encourages you to split your applications ...READ MORE

answered Nov 12, 2018 in AWS by Archana
• 5,640 points
166 views
0 votes
1 answer

Permission denied when I SSH access to EC2 instance

These are common reasons that can cause ...READ MORE

answered Mar 12, 2019 in AWS by Reema
1,123 views
0 votes
1 answer
0 votes
1 answer

Does it make sense to have an Amazon Elastic Load Balancer with just one EC2 instance?

Well you are right Elastic Load Balancer is mainly ...READ MORE

answered Mar 20, 2019 in AWS by ArchanaNagur
• 2,340 points
253 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Create Amazon EC2 instance with API

If you are looking for a method ...READ MORE

answered Jul 20, 2018 in AWS by Archana
• 4,150 points
572 views
0 votes
1 answer

Terminating and EC2 instance by command line

There is no command to terminate all ...READ MORE

answered Aug 9, 2018 in AWS by Archana
• 4,150 points
366 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP