Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.315 kb
#!/usr/bin/env python
def kill_instance(instance_id):
"""Kill an instance given it's instance ID"""
import boto
ec2 = boto.connect_ec2()
print "Stopping instance: %s" % instance_id
ec2.terminate_instances([instance_id])
if __name__ == "__main__":
import sys
kill_instance(sys.argv[1])
Jump to Line
Something went wrong with that request. Please try again.