Skip to content

Instantly share code, notes, and snippets.

@awsiv
Last active October 9, 2020 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awsiv/bc7a2a28679a7bfc59b988134a8597bd to your computer and use it in GitHub Desktop.
Save awsiv/bc7a2a28679a7bfc59b988134a8597bd to your computer and use it in GitHub Desktop.
Map AWS availability zones
#!/bin/bash
if [ $# != 1 ]; then
echo "Usage: AWS_PROFILE=<aws-profile> ./$0 <region>"
exit 1
fi
aws ec2 describe-availability-zones --region "$1" | jq -r '.AvailabilityZones[] | .ZoneId + "=" + .ZoneName'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment