![]() To get a list of attributes for a given service code (with jq): aws pricing describe-services -service-code AmazonEC2 -region us-east-1 | jq -r '.Services |. to get a list of attributes for a given service code: aws pricing describe-services -service-code AmazonEC2 -region us-east-1 To get a list of service codes (with jq): aws pricing describe-services -region us-east-1 | jq -r '.Services |. Using the aws cli (in the examples below, I have also included how the same thing can be executed using jq) to get a list of service codes: aws pricing describe-services -region us-east-1 To be treated as JSON files, the initial comments and the callback function should be removed and the keys should be wrapped in double quotes. Update : addresses changed once again and include the new T2 instace types. Please note that these are JS files with a callback function that should be removed so that it becomes a parsable JSON. Just to let you know that they seem to have changed the JSON addresses. curl 2>/dev/null | grep 'model:' | sed -e "s/.*'\(.*\)'.*/http:\\1/"įor those who don't like command line, you can also check in a web browser network console (you get there with F12), filter with JS objects: Actually this command was used to create the list above. So, here is a short command to get current set or URLs from any AWS pricing page. It is best to check what is the current status rather than relying on links provided in this thread. ![]() ![]() WARNING: The endpoints change from time to time and often old URL is still there with old values. Here is a list that supports EC2 pricing page (as of 17 December 2014): It is not an API maybe, but definitely computer digestible. Each table (and each tab for table) has separate JSON file. The price lists are available in form of JSONP files (you need to strip off function call) which are used by the AWS pricing pages. ![]()
0 Comments
Leave a Reply. |