You can enable Termination Protection to stop anyone from accidentally terminating (i.e. deleting) your AWS instance.
For running instances use the AWS console.
- Select your instance
- Click Actions button
- Select Instance Settings > Change Termination Protection.
- Click Yes, Enable to enable protection for your instance.
Get detailed information from AWS: