Amazon EC2 : Protect instances from unintentional shutdown

Amazon EC2 : Protect instances from unintentional shutdown

Table of contents

No heading

No headings in the article.

You can now enable accidental stop protection for EC2 Instance just like accidental termination protection

here is how you can do in 6 easy steps

  1. Select your EC2 Instance
  2. Click on Actions
  3. Click Instance Settings
  4. Click Change stop protection ( this is the new feature added)
  5. Select Enable under Stop protection
  6. Click Save

image.png

image.png

To disable the feature just uncheck the "Enable" option at Step 5

Special Considerations:

  • Not applicable for Scheduled Event that stops the instance
  • No change to Auto scaling behavior ( if instance is unhealthy instance will be terminated per ASG rules)
  • Not applicable for instance store-backed instances
  • Not applicable for Spot Instances.

for more details check AWS announcement page and AWS documentation

https://aws.amazon.com/about-aws/whats-new/2022/05/amazon-ec2-enables-protect-instances-unintentional-stop-actions

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection