Skip to content

Instantly share code, notes, and snippets.

@janreiche
Created March 16, 2021 16:21
Show Gist options
  • Select an option

  • Save janreiche/b20a5345e69c8af67f247391403d17a7 to your computer and use it in GitHub Desktop.

Select an option

Save janreiche/b20a5345e69c8af67f247391403d17a7 to your computer and use it in GitHub Desktop.
AWS list ec2 instance types from free-tier
# get all aws regions
AWS_REGIONS="$(aws ec2 describe-regions --query 'Regions[].RegionName' --output text)"
# for each region
for REGION in ${AWS_REGIONS}; \
do \
echo ${REGION};
aws ec2 describe-instance-types --filters Name=free-tier-eligible,Values=true --region ${REGION}| grep "InstanceType\"";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment