I am struggling to understand how to obtain pricing info. programmatically (that is, via URL or aws CLI). I suspect I am missing the 'big picture'.
I can estimate pricing manually on the web by, for example, aws marketplace -> operating systems -> select an AMI -> instance type. This gives an estimate cost.
I would like to do the same via the aws CLI or URL.
I want to compare costs for a variety of regions & instance types but this is too time consuming to explore manually.
To be specific, given an instance obtained using aws ec2 describe-images --owners aws-marketplace
, how do I go about mapping this to the data in an offer file obtained using, for
example, wget https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/index.json
?
Any suggestions appreciated (or redirect to more appropriate site).