kevinhakanson.com

CloudFront and Disaster Recovery: Part 2

November 21, 2018 #aws #cloudfront #disasterrecovery

Last year I wrote CloudFront and Disaster Recovery based on the ability to use Lambda@Edge to “generate HTTP responses when CloudFront viewer request or origin request events occur.”

This year Amazon CloudFront announces support for Origin Failover

With CloudFront’s Origin Failover capability, you can setup two origins for your distributions - primary and secondary, such that your content is served from your secondary origin if CloudFront detects that your primary origin is unavailable. CloudFront already allows you to configure custom error pages or generate redirects with Lambda@Edge if your origin is unavailable. Now with Origin Failover, you can easily setup failover logic between combinations of AWS origins or non-AWS custom HTTP origins such that there is minimal interruption to your viewer’s experience.