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,390 points
32 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 3,770 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,280 points
14 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 ...READ MORE

answered Mar 20 in AWS by ArchanaNagur
• 1,070 points
20 views
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 in AWS by ArchanaNagur
• 1,070 points
26 views
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
• 3,770 points
38 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
• 3,770 points
10 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.