Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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.