Skip to content

Instantly share code, notes, and snippets.

@jflaflamme
Last active September 5, 2017 04:01
Show Gist options
  • Select an option

  • Save jflaflamme/e4a7eedd1d121885050bad5ad79c18fd to your computer and use it in GitHub Desktop.

Select an option

Save jflaflamme/e4a7eedd1d121885050bad5ad79c18fd to your computer and use it in GitHub Desktop.
Get AWS IP ranges (like EC2) (requires jq utility)
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json| \
jq '.prefixes[] | select(.region == "ap-southeast-1")| select(.service == "EC2").ip_prefix'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment