Configuring a website to fail over to an S3 bucket
In a real-time scenario, we will configure an S3 static website, which we will use as a failover if there's an issue with our primary website. To do the failover, we are going to use the Route53 health check.
Our primary website is hosted on EC2 behind an application load balancer:
If the primary EC2 instances go down, Route53 will route traffic to an S3 bucket using a failover policy that is hosting our static website:
This chapter assumes that you already have a Route53 public hosted zone that is hosting your website. A public hosted zone holds information such as how to route traffic on the internet for a specific domain, for example, amazon.com
. For more information about public hosted zones, check out the following link: https://docs.aws...