Skip to content

Instantly share code, notes, and snippets.

@magnologan
Forked from joswr1ght/aws-us-east-1-iplist.sh
Created February 17, 2021 00:22
Show Gist options
  • Save magnologan/5644d654bd7b9e3666c1f7834ad0ae34 to your computer and use it in GitHub Desktop.
Save magnologan/5644d654bd7b9e3666c1f7834ad0ae34 to your computer and use it in GitHub Desktop.
Get AWS IP Addresses for a Specified Area
wget -qO- https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes[] | if .region == "us-east-1" then .ip_prefix else empty end' -r | head -3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment