Skip to content

Instantly share code, notes, and snippets.

@iaon
iaon / instance-types.sh
Last active June 2, 2023 18:42 — forked from serithemage/instance-types.sh
Get all EC2 Instance Types in All Availability Zones (Output as table instance_type vs AZ)
#!/bin/bash
# Getting list of Availability Zones from target region
# all
#target_regions=$(aws ec2 describe-regions --output text --query 'Regions[*].[RegionName]' | sort)
# default region
target_regions=$(aws configure get region)