
High Availability with CloudFront Origin Failover
You can use Lambda@Edge functions with CloudFront distributions that have origin groups by specifying the function in an origin request or response trigger during cache behavior setup; in this configuration, the Lambda function may be triggered twice for a single viewer request—once when CloudFront sends a request to the primary origin (on a cache miss) and again if the primary origin fails and CloudFront sends the request to the secondary origin.

CloudFront on One Page (No Fluff)
Optimize your content delivery. Our CloudFront cheat sheet covers distributions, cache behaviors, and edge functions - the key concepts you need.
HD quality, print-friendly. Stick it next to your desk.
By entering your email, you are opting in for our twice-a-month AWS newsletter. Once in a while, we'll promote our paid products. We'll never send you spam or sell your data.