DEV Community

Venkatesh K
Venkatesh K

Posted on • Originally published at venkatesh111.hashnode.dev on

Amazon EC2 - Protect instances from unintentional shutdown

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

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay