Skip to content

Instantly share code, notes, and snippets.

@kepstein
Last active November 14, 2016 23:42
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 kepstein/162be4498729f463c11e626c102e6eef to your computer and use it in GitHub Desktop.
Save kepstein/162be4498729f463c11e626c102e6eef to your computer and use it in GitHub Desktop.
Query AWS for latest IP range information, and export to CSV
# requires that jq utility be installed and in $PATH
curl https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes[]| "\(.service),\(.region),\(.ip_prefix)"'|tr -d '"' > aws_ips.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment