Skip to content

Instantly share code, notes, and snippets.

@svenikea
Last active June 14, 2022 01:55
Show Gist options
  • Save svenikea/19506a20b572503e1ce10a9a6b759361 to your computer and use it in GitHub Desktop.
Save svenikea/19506a20b572503e1ce10a9a6b759361 to your computer and use it in GitHub Desktop.
AWS CLoudfront IP ranges
{
# us-east-1
"3.231.2.0/25"
"3.234.232.224/27",
"3.236.169.192/26",
"3.236.48.0/23",
"34.195.252.0/24",
"34.226.14.0/24",
# us-east-2
"13.59.250.0/26",
"18.216.170.128/25",
"3.128.93.0/24",
"3.134.215.0/24",
"52.15.127.128/26",
# us-west-1
"3.101.158.0/23",
"52.52.191.128/26",
# us-west-2
"34.216.51.0/25",
"34.223.12.224/27",
"34.223.80.192/26",
"35.162.63.192/26",
"35.167.191.128/26",
"44.227.178.0/24",
"44.234.108.128/25",
"44.234.90.252/30",
# eu-central-1
"18.192.142.0/23",
"35.158.136.0/24",
"52.57.254.0/24",
# eu-west-1
"18.200.212.0/23",
"52.212.248.0/26",
# eu-west-2
"3.10.17.128/25",
"3.11.53.0/24",
"52.56.127.0/25",
# eu-west-3
"15.188.184.0/24",
"52.47.139.0/24",
# eu-north-1
"13.48.32.0/24",
# eu-south-1
}
@svenikea
Copy link
Author

Use jq to filter ip-ranges

jq '.[] | select((.service=="CLOUDFRONT") and .region=="<REGION>") | .ip_prefix ' ip-ranges.json

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