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?
|
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?
| |||
|
feedback
|
|
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. | |||
|
feedback
|