aws ec2 describe-spot-price-history --start-time 2017-01-06T07:08:09 --end-time 2017-01-07T08:09:10
另一种方法是使用REST API和DescribeSpotPriceHistory
。
例如,要获取12/01/18的所有值:
https://ec2.amazonaws.com/?Action=DescribeSpotPriceHistory &StartTime=2018-12-01T00:00:00.000Z &EndTime=2018-12-01T23:59:59.000Z &AUTHPARAMS