Route53 DNS Failover Stack
CloudFormation: Route53 health checks with primary and secondary failover records, SNS alert when failover activates, and automatic recovery detection.
Route53 Active-Passive DNS Failover via CloudFormation
A CloudFormation stack that configures Route53 health checks on your primary endpoint, primary and secondary failover DNS records, an SNS alert when failover activates, and a recovery detection alarm when the primary comes back healthy.
What's Included
- Route53 HTTP/HTTPS health check with configurable path, threshold, and interval
- Primary failover record (ALIAS or weighted) pointing to your main endpoint
- Secondary failover record pointing to your standby endpoint or S3 static site
- CloudWatch alarm on the health check metric wired to SNS
- SNS topic with email subscription for failover and recovery notifications
- Recovery alarm that fires when the primary returns to healthy
What You Get
dns-failover.yaml— CloudFormation templateparameters/— parameter files for ALB primary, EC2 primary, and S3 secondary variantsREADME.md— health check tuning, failover timing expectations, and testing procedure
Requirements
- AWS account with Route53 and CloudWatch permissions
- Existing hosted zone in Route53
- Primary and secondary endpoints reachable from Route53 health checkers (public IPs or endpoints)