brenda-web icon indicating copy to clipboard operation
brenda-web copied to clipboard

Historical Price Data in Interface

Open robksawyer opened this issue 9 years ago • 0 comments

This is a stub for the future task of showing historical price data in the interface. I figured the following might be helpful. This comes from the article: http://www.stratex.com/blog/2014/12/launching-spot-instances-aws-command-line/

Once you have the instance up and running there are few handy commands to manage things. To check the recent prices:

aws ec2 describe-spot-price-history –start-time $(date -j -u +”%Y%m%dT%H0000″) –product “Linux/UNIX (Amazon VPC)” –instance-type “r3.large” –availability-zone $zone

This will give you the spot prices as of the current hour.

To check on your request status, which you will need to do a lot initially till you figure out all the command switches as you will run into a lot of “failed due to bad parameters” cases:

aws ec2 describe-spot-instance-requests

Finally to cancel your request

aws ec2 cancel-spot-instance-requests –spot-instance-request-ids $requestId

robksawyer avatar Jun 19 '15 20:06 robksawyer