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,540 points
2,402 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,170 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
743 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
2,016 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,360 points
692 views
0 votes
1 answer
0 votes
1 answer

Does amazon charge you if your instance is stopped?

No, you are not charged for the ...READ MORE

answered Mar 27, 2019 in AWS by Dushyant
4,460 views
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,170 points
1,057 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,170 points
961 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP