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,440 points
95 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,090 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,560 points
21 views
0 votes
1 answer
0 votes
1 answer
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,090 points
94 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,090 points
18 views