Prevent EC2 Instance Termination
Ever accidentally deleted an EC2 instance? Save yourself a lot of trouble and use the following API tools command:
ec2-modify-instance-attribute --disable-api-termination true i-01d3e23b
Swap in your own instance ID for best effect.
Run the same command again with the boolean switched to false to allow deletion.