Skip to content

Instantly share code, notes, and snippets.

@jamesoff
Created April 21, 2019 22:46
Show Gist options
  • Save jamesoff/faa0f12ef692e558aacc137fa394d483 to your computer and use it in GitHub Desktop.
Save jamesoff/faa0f12ef692e558aacc137fa394d483 to your computer and use it in GitHub Desktop.
Get available instance types in a region
http https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/eu-west-2/index.json | jq '[ .products | to_entries | .[].value.attributes.instanceType | select(. != null) | scan("^[a-z0-9]+") ] | unique'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment