Last active
July 25, 2022 15:45
-
-
Save palmerj/e293b443def642431f05775aa4d7f640 to your computer and use it in GitHub Desktop.
One liner to get AWS S3 IP address ranges for ap-southeast-2 (Sydney)
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 https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes' | jq 'map(select(.region=="ap-southeast-2"))' | jq 'map(select(.service=="S3"))' | jq 'map(.ip_prefix)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, good optimisation.