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?