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')