Last active
September 5, 2017 04:01
-
-
Save jflaflamme/e4a7eedd1d121885050bad5ad79c18fd to your computer and use it in GitHub Desktop.
Get AWS IP ranges (like EC2) (requires jq utility)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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