EC2 instance "terminating" instead of "stopping"

0

I went to my EC2 instances (I had two) and I selected one of them and clicked on the "instance state" that was running and changed it to "stop" in hopes to restart or refresh as it was not responsive. Instead, BOTH instances got "terminated" instead of stopping and I can't start the instance again. PLEASE HELP! how can I start the instances again?? Thanks!

AWS
asked a year ago358 views
2 Answers
1

Hi, unfortunately is not possible to restart a "terminated" instance and all the volume that have been deleted as part of the termination process as described on this article: https://repost.aws/knowledge-center/recovery-terminated-instance

Did your instance were part of an autoscaling group? in this case the instance could have been terminated because as stopped was failed the health check from Ec2 and/or from the ELB. https://repost.aws/knowledge-center/auto-scaling-instance-how-terminated But if this is the case you should be able to recover your instance from the instance template of the autoscaling group. Otherwise to recover your instance you could use a snapshot if available.

AWS
answered a year ago
0

Thank you so much for your quick response! My instances were not part of auto scaling groups. They both disappeared now from the launch view and when I navigate to the auto scaling groups there isn't activity history to view just "create auto scaling groups".

I did check cloud trail > event history and found that despite I only selected to stop one of the instances , "CCSSession" as a user terminated both instances instead of stopping 3 seconds later. I can't tell why the stopping action turned into termination if you can educate me on that for future reference that would be great too.

It seems like the only option I have now is to launch a new instance using Amazon Machine Images (AMI) of the old ones. I don't know the impact of that, will I need to recreate the entire set up again for e.g. required for OS reporting etc?? or will it be an exact copy with regards to installation and set up?

I also need to protect the new launched instance from EC2 accidental termination. Following the guidance provided here: https://repost.aws/knowledge-center/recovery-terminated-instance.

Is that correct? I greatly appreciate your help!

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions