Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to start a certain EC2 AMI at the click of a button, well two buttons actually. Just to speed up testing / launch-time.

How would you call the EC2 API tools for windows via a batch file to start a spot instance of an AMI?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You need the ec2-request-spot-instances command. Remember that a spot instance won't start until the maximum price that you specify exceeds the current Spot Price, but you could use the ec2-describe-spot-price-history command to periodically check the spot price.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.