Skip to content

Instantly share code, notes, and snippets.

@jodell
Created July 3, 2018 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jodell/21197b4533bc6596cff85c72859c459f to your computer and use it in GitHub Desktop.
Save jodell/21197b4533bc6596cff85c72859c459f to your computer and use it in GitHub Desktop.
# https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/LocationsOfEdgeServers.html
curl http://d7uri8nf7uskq.cloudfront.net/tools/list-cloudfront-ips | jq -r '"set_real_ip_from " + ((.CLOUDFRONT_GLOBAL_IP_LIST | .[]), (.CLOUDFRONT_REGIONAL_EDGE_IP_LIST | .[])) + ";"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment