Last active
May 13, 2018 07:13
-
-
Save zaa/9523526 to your computer and use it in GitHub Desktop.
Fetch AWS instance prices (per month)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s 'http://aws-assets-pricing-prod.s3.amazonaws.com/pricing/ec2/linux-od.js' | sed -e 's/callback(//;s/^)$//' | jq '[.config.regions[] | select(.region == "us-west") |.instanceTypes[].sizes[] | {key: (.size), value: ((.valueColumns[0].prices.USD|tonumber)*720)} ] | from_entries' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment