is there a way to retrieve the current instance type price via the ec2 API? Would be cool to compute an expected monetary cost before performing an action…
I do see :DescribeSpotPriceHistory, which is a start
I guess there must be a JSON spec for the pricing list (https://aws.amazon.com/ec2/pricing/on-demand/) somewhere…
I found this: https://aws.amazon.com/blogs/aws/new-aws-price-list-api/
https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/index.json