Skip to content

Instantly share code, notes, and snippets.

@Chan9390
Created February 23, 2020 06:27
Show Gist options
  • Save Chan9390/d49c0024aa59edb455c0954ec7eefe37 to your computer and use it in GitHub Desktop.
Save Chan9390/d49c0024aa59edb455c0954ec7eefe37 to your computer and use it in GitHub Desktop.
One liner to get all the IP ranges of AWS Gov regions
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.region | contains("gov")) | .ip_prefix' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment