Skip to content

Instantly share code, notes, and snippets.

View zhongchen's full-sized avatar

Zhong Chen zhongchen

  • KongHQ
  • San Francisco, CA
View GitHub Profile
@nmagee
nmagee / retrieve-ec2-instance-types.sh
Last active November 25, 2019 12:26
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 '\.'