- Newest
- Most votes
- Most comments
You can enable termination protection on instances which may help.
I would investigate and find out why those instances were terminated - start with CloudTrail as it shows things such as EC2 API calls (even those made via the console) so you can determine the root cause.
You can implement instance termination protection for Amazon EC2 instances which provides an additional layer of protection. Here is an AWS knowledge document on best practices for preventing the loss of data on termination: https://aws.amazon.com/premiumsupport/knowledge-center/accidental-termination/. The first link on this page refers you to this page, https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/terminating-instances.html#Using_ChangingDisableAPITermination, which covers instance termination protection.
Relevant content
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 2 years ago