[Recipes] Terminate an EC2 Instance With Termination Protection Enabled


We created an EC2 instance in one of previous labs and had enabled termination protection. We need to terminate that instance.

Solution Summary: 

Use the Change Termination Protection option from the Instances screen's Actions menu to allow termination of these instances.


Need to create an EC2 instance and have enabled termination protection.

Solution Steps: 

  1. Login to AWS console and go to EC2 page.
  2. Go to Instances page and select your instance.
  3. Copy and run the Public DNS (IPv4) on a browser, and you should see the index.html file loaded with “Hello Buddy!” text. Public DNS has the form: http://ec2-54-71-189-77.us-west-2.compute.amazonaws.com/
  4. Click on the Actions menu on top and go to Instance State and try to stop, start, reboot and terminate. You will not be able to do terminate because we have enabled termination protection. 
  5. Click on the Actions menu on top and go to Instance Settings and click on “Change Termination Protection”.
  6. Click on the Actions menu on top and go to Instance State and Terminate.


Exam Tips

  1. Termination  Protection is turned off by default, will have to click to enable while instance creation.

Recipe Tags: 

Learn Serverless from Serverless Programming Cookbook


Please first use the contact form or facebook page messaging to connect.

Offline Contact
We currently connect locally for discussions and sessions at Bangalore, India. Please follow us on our facebook page for details.
WhatsApp (Primary): (+91) 7411174113
Phone (Escalations): (+91) 7411174114

Business newsletter

Complete the form below, and we'll send you an e-mail every now and again with all the latest news.


Cloudericks.com is my blog to share notes and learning materials on Cloud and Data Analytics. My current focus is on Amazon Web Services.

I like to write. I try to document what I learn and share with others. I believe that knowledge is useless unless you share it; the more you share, the more you learn.

Recent comments

Photo Stream