CloudFront (CF) Cheat Sheet

Overview

  • Pay-as-you-go CDN with integrations to AWS services
  • Free EC2, S3 origin fetches

Lambda@Edge

Troubleshooting

  • 302 redirections from origin should set the correct domain name or use relative paths in Location header, failing to do so will cause CF to serve the response as-is, thus user will be redirected to wrong URL