Skip to content

Instantly share code, notes, and snippets.

@palmerj
Last active July 25, 2022 15:45
Show Gist options
  • Save palmerj/e293b443def642431f05775aa4d7f640 to your computer and use it in GitHub Desktop.
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)
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)'
@palmerj
Copy link
Author

palmerj commented Oct 29, 2021

Thanks, good optimisation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment