Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save indrayam/8dc3cd60b3b614e0823fe558550b7197 to your computer and use it in GitHub Desktop.
Save indrayam/8dc3cd60b3b614e0823fe558550b7197 to your computer and use it in GitHub Desktop.
Query the AWS Pricing API to get all currently available EC2 instance types
#!/bin/bash
curl https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/index.json | jq -r '.products[].attributes["instanceType"]' | sort -u | grep '\.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment