1

I have an EC2 instance that I'm trying to stop by going to Running instances -> Actions -> Instance State -> Stop but after a few minutes it starts automatically. Is there a reason for this behaviour?

  • 3
    Are you sure it's the same actual instance, and not a replacement (autoscaling group?) Either way, try checking the Cloudtrail logs to see if something's making an API call to start the instance. – Karen B Jun 8 '16 at 9:29
  • Thanks for your suggestion (you should post it as an answer so I can accept it). It was indeed an API call that started the instance. – Alex Jun 8 '16 at 10:20
  • I had a similar issue and realized my EC2 instance was part of an ASG, and the ASG was restarting a new EC2 instance. – StvnBrkdll Jun 28 at 16:01
2

Recapitulating my prior comment, AWS will not restart a stopped instance on its own. AWS Cloudtrail is the place to look for who/what made the API call to restart the instance.

  • For me to temporarily shut them down I had to: In the Autoscaling Groups I set the "desired instances" and "min instances" to zero. All affected instances were shut down. – patrics Sep 3 '16 at 17:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.