Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (8 sloc) 323 Bytes
#!/bin/sh -ex
# EC2 will tell us our own instance ID, use that to turn ourselves off.
python <<KILL
from urllib import urlopen
from boto.ec2 import EC2Connection
instance = urlopen('').read().strip()
EC2Connection('$KEY', '$SECRET').terminate_instances(instance)