conn = boto.ec2.connect_to_region(region_name=region_name,
    aws_access_key_id=aws_access_key_id, aws_secret_access_key=
    aws_secret_access_key)
req = conn.request_spot_instances(price=MAX_SPOT_BID, instance_type=
    instance_type, image_id=AMI_ID, availability_zone_group=region_name,
    key_name=KEY_PAIR_PEM[:-4], security_groups=security_groups)
job_instance_id = None
while job_instance_id == None:
    print('checking job instance id for this spot request')
job_sir_id = req[0].id
reqs = conn.get_all_spot_instance_requests()
for sir in reqs:
    if sir.id == job_sir_id:
        job_instance_id = sir.instance_id
print('job instance id: ' + str(job_instance_id))
break
time.sleep(SPINUP_WAIT_TIME)
С ec2 python API boto, как получить спот instance_id из SpotInstanceRequest?