This file contains hidden or 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
| # 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 |