Created
June 7, 2018 13:49
-
-
Save rcbop/aee2ce07a3d750941e62029c5b7a3c3b to your computer and use it in GitHub Desktop.
get amazon ip range for region and convert it to csv
This file contains 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 -L https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes[] | select(.region=="sa-east-1") ' | jq --slurp -r '. | map([.ip_prefix, .region, .service] | join(", ")) | join("\n")' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment