Skip to content

Instantly share code, notes, and snippets.

@joswr1ght
Created December 22, 2020 13:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joswr1ght/5f504703596c391ba05369e11ba49694 to your computer and use it in GitHub Desktop.
Save joswr1ght/5f504703596c391ba05369e11ba49694 to your computer and use it in GitHub Desktop.
Get AWS IP list, filtered by region
# This isn't so much of a script as it is a placeholder for something I don't want to forget
wget -qO- https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes[] | if .region == "us-east-1" then .ip_prefix else empty end' -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment