Disable Termination of ec2 instances

28 May, 2010
amazon, ec2

At my company we use Amazones ec2 clouds to serve our website and our applications.

When ever i need to create a server for some test, it's allways a bit scary when i have to terminate it. I always makes sure at least twice that its the correct server that i terminate ;)

But now theres a better way .. just disable termination on the servers that must be kept alive. (only works on EBS instances).

ec2-modify-instance-attribute --disable-api-termination true INSTANCEID

For more info and other tips, visit alestic.com