I am writing a python script that starts a specific instance that is currently stopped, and I am kind of stumped on how I'd do that. As far as I can understand from the Boto EC2 introduction on launching instances this creates a completely new instance?
conn.run_instances(
'<ami-image-id>',
key_name='myKey',
instance_type='c1.xlarge',
security_groups=['your-security-group-here'])
Code examples would be very welcome!
I had completely missed this command in the API
For future reference, this is how to start a stopped instance:
instance = conn.get_all_instances(instance_ids=['instance_id'])
print instance[0].instances[0].start()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With