Saturday, 15 May 2010

amazon web services - AWS: cancel spot instance request within a spot instace -



amazon web services - AWS: cancel spot instance request within a spot instace -

i want run info analysis using aws that'll take few days. i've setup scheme spot instances reload same ebs volume can resume analysis after termination. far i've got working can generate persistent spot request , have analysis maintain running , go on after spot instance terminations until done.

but want spot instance cancel persistent spot instance request when analysis finished. there anyway request id within spot instance?

the spot instance info not available ec2 metadata. however, instance id is.

get instance id ec2 metadata. use describeinstances (or ec2-describe-instances, or aws ec2 describe-instances instance info instance. within instance info spotinstancerequestid spot instance request id you're looking for.

amazon-web-services

No comments:

Post a Comment