Skip to content

Instantly share code, notes, and snippets.

View obormot's full-sized avatar
👾
hacking

Oscar I obormot

👾
hacking
View GitHub Profile
@obormot
obormot / gist:8c3709e83ba69b577f7dbc8549912ef7
Created June 3, 2026 19:18 — forked from janreiche/gist:b20a5345e69c8af67f247391403d17a7
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