AWS EC2 is a scalable, reliable and low-priced offering from Amazon for the user’s virtual computation or hosting needs. AWS EC2 instances can be launched or terminated any time. However, there may be a probability that the user may terminate the production instance by accident. To overcome the above mentioned problem, AWS provides a functionality called termination protection. Once enabled, the user cannot terminate the instance from the console or the command line API.
The present guide demonstrates how to enable termination protection for an instance.