4 ms·
If you have boto installed, this is all you'll need to do import boto.ec2 conn = boto.ec2.connect_to_region("us-east-1") conn.request_spot_instance
by conroy 14y ago
If you have boto installed, this is all you'll need to do
import boto.ec2
conn = boto.ec2.connect_to_region("us-east-1")
conn.request_spot_instances('0.005', 'ami-2400984d',
instance_type='t1.micro', user_data='USERNAME')