Skip to content

Instantly share code, notes, and snippets.

@denzhel
Created December 25, 2022 20:48
Show Gist options
  • Save denzhel/124f7dbafca521833a3888a96bc7e71e to your computer and use it in GitHub Desktop.
Save denzhel/124f7dbafca521833a3888a96bc7e71e to your computer and use it in GitHub Desktop.
aws IP addresses for a specific server

To get the IP ranges for a specific service in a specific region, use this:

curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.region=="us-west-1") | select(.service=="S3") | .ip_prefix'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment