Route 53 Failover Stays on the Primary During an Outage: Check the Health Check, Then Force the Cutover
Overview
With Route 53 failover, a primary that fails users can still pass its health check. Read the records and checks, confirm the standby is healthy, then invert the primary check with its saved version and restore it after recovery.
Diagnose
Symptom
What responders observe.
Start here when users cannot reach a service whose DNS name uses Route 53 active-passive failover, and the standby that should have taken over is idle. Monitoring or users report that the primary endpoint is down or returning errors. Route 53 still answers queries for the name with the primary record, and the failover you designed has not happened. Nothing in the primary's health check history says the endpoint was ever unhealthy.
Detection
Metrics, logs and confirmation commands.
Root cause
Why the incident occurred.
Contain and prevent
Blast radius
What else this can affect.
Prevention
Controls and guardrails that stop it recurring.
-
Fix the cause, not only the symptom.
-
Review the health check so that it requests a path that returns an error when the application is broken, and add a string match if a failing page can return 200.
-
Remember that the string must appear within the first 5,120 bytes.
-
Make sure every non-alias record in a group has a health check and every alias in the tree evaluates target health.
-
Test the failover on purpose in a non-production hosted zone, and write down the detection time.
-
With the default failure threshold of three and a 30-second interval, the failures needed before the status changes take about 90 seconds before the TTL even starts.
-
That arithmetic is ours, so measure yours.
-
Keep the TTL at 60 seconds or less on health-checked records.
-
Related reading: the negative-caching defaults trap covers how negative caching can outlast a failover window.
-
If the cutover involves a registrar change, read the nameserver and DS record trap first.
-
For a different Route 53 incident, see the dangling record runbook.
Fix
Pre-flight checks
Check these before you change anything.
Read access to the Route 53 hosted zone and its health checks.
An approved change record and write access to the health check before you force the cutover.
Commands
aws route53 list-resource-record-sets --hosted-zone-id <ZONE_ID> --query "ResourceRecordSets[?Name=='www.example.com.']"
aws route53 get-health-check --health-check-id <PRIMARY_HEALTH_CHECK_ID>
aws route53 get-health-check-status --health-check-id <HEALTH_CHECK_ID>
aws route53 test-dns-answer --hosted-zone-id <ZONE_ID> --record-name www.example.com --record-type A
aws route53 update-health-check --health-check-id <PRIMARY_HEALTH_CHECK_ID> --health-check-version <VERSION_FROM_COMMAND_2> --inverted
aws route53 update-health-check --health-check-id <PRIMARY_HEALTH_CHECK_ID> --health-check-version <VERSION_FROM_COMMAND_5> --no-inverted
Verify and recover
Verification
Evidence required before you close the incident.
Run command 4 after the change. — RecordData holds the standby address. — The standby address is returned.
Run command 3 for the primary and standby health checks. — The primary reports unhealthy observations and the standby healthy ones. — Standby healthy, primary unhealthy while inverted. Request the service from a client outside the network after the TTL has passed. — The real application answers from the standby. — Users reach the standby and its error rate is stable for 15 minutes.
Rollback
The safe way back.
Run command 6 against the primary health check with the version returned by command 5 to set --no-inverted, once the primary has been tested directly.
If the primary fails again after the return, run command 5 again with the current version.
If any other setting was changed during the incident, restore it from the health check output saved from command 2.
Escalate when
Conditions that need another owner.
-
Escalate to the AWS account owner and the application owner when any of these hold.
-
The standby is also unhealthy or serving errors.
-
Command 4 still shows the primary address several minutes after the change.
-
The health check configuration was edited by someone else after you read it, so the version no longer matches.
-
You cannot tell whether the primary's failure is an application fault or a network fault.
-
Open an AWS Support case if Route 53's answers contradict the documented behaviour, and attach the saved command output.
-
Escalate to the AWS account owner.
-
Escalate to the application owner.
-
Escalate if it persists well beyond the TTL.
Fixed? Get the next one before it hits you: The KBY Brief
Practical fixes for the systems you run, by email about twice a week. Unsubscribe at any time.
About this page
Credited to
Dates
Published
Corrections
No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Found this useful? Follow KBY for more like it.
Sources
Based on the vendor sources listed below. Check each step against your environment before acting.
First published 3 December 2026
Active-active and active-passive failover
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
How Amazon Route 53 determines whether a health check is healthy
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
How health checks work in complex Amazon Route 53 configurations
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
How Amazon Route 53 averts failover problems
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
Values specific for failover records
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
update-health-check (AWS CLI)
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
get-health-check (AWS CLI)
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
get-health-check-status (AWS CLI)
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
test-dns-answer (AWS CLI)
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
list-resource-record-sets (AWS CLI)
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
Incident Response Recommendations and Considerations for Cybersecurity Risk Management
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
Recommendations for incident response
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
Recommended reading
More from KBY that goes with this runbook.
Small business ITSPF, DKIM and DMARC: the three DNS records that make it harder to send email as your business
8 min read

