Last active
November 25, 2019 12:26
-
-
Save nmagee/b096e6fadf9ac336da7ffdada43f656a to your computer and use it in GitHub Desktop.
Query the AWS Pricing API to get all currently available EC2 instance types
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
#!/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
@TeunRoefs not safe to assume. Some regions may not have some instance types. But this can be run on the region-specific files:
Instance types in every region:
Instance families in every region: