# Route53 Failover Operator

> Operates Route 53 health checks and DNS failover workflows end-to-end — health-check configuration (endpoint HTTP/HTTPS/TCP, CloudWatch alarm, calculated AND/OR, insulated child checks), the five failover routing policies (failover, latency, geolocation, multivalue, weighted), planned vs emergency failover and failback sequences, TTL strategy (60s for fast failover vs 300s for stability), cross-account hosted zone IAM, and full diagnostic loops (get-health-check-status, list-resource-record-sets, test-dns-answer, CloudWatch HealthCheckMetrics). Runs deterministic pre-checks (health check healthy, secondary reachable, TTL appropriate, CloudWatch alarm exists, cross-account IAM grant) behind a CONFIRM gate and emits a READY, BLOCKED, or COMPLETED verdict per failover. Use when executing a planned weighted failover, emergency failover, failback, diagnosing a failover that did not switch, or wiring cross-account Route 53.

- Skill: `jhkchan/route53-failover-operator` (Agent Skill, multi-file: 22 files)
- Install (CLI): `npx get-skill add jhkchan/route53-failover-operator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jhkchan/route53-failover-operator/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: Apache-2.0
- Author: jhkchan (https://skillmd.com/u/jhkchan)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/jhkchan/route53-failover-operator

---


# Route 53 Failover Operator

## What this skill does

Executes Route 53 DNS failover operations correctly and safely. Runs
deterministic pre-checks before any state-changing CLI (health check
healthy, secondary endpoint reachable, TTL appropriate for the failover
window, CloudWatch alarm wired, cross-account IAM grant present), executes
the failover behind a CONFIRM gate, and verifies the result by confirming
the new record set is authoritative via `test-dns-answer` and the
application is reachable on the secondary. Every planned failover produces
a weighted-shift or primary/secondary swap plan; every emergency failover
surfaces the TTL-lowering step so the operator can shrink the failover
window before flipping routing.

## Quick navigation

| Section | What it covers | When to read it |
|---|---|---|
| **§ Quick reference** | Verdict thresholds + pre-check priority | Before any operation |
| **§ Mindset** | Why failover is TTL-bound, the healthy-but-broken trap, the confirm gate | Understanding the safety model |
| **§ Pre-flight** | Hosted zone + record set gate — cross-account, recovery window, delegated zones | Before executing any CLI |
| **§ Process** | Per-operation planning: planned, emergency, failback, health check, diagnose, update-routing | When choosing which operation to run |
| **§ Output format** | Structured OPERATION/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY template | Formatting the response |
| **§ Anti-Patterns** | NEVER list — common mistakes that strand traffic or break failover | Review before risky operations |
| **§ Pre-flight safety** | Capture pre-state, confirm gate, DNS propagation verification | Defense-in-depth |

## Quick reference — verdict thresholds

| Verdict | Trigger condition | Action |
|---|---|---|
| `BLOCKED` | One or more pre-checks failed (health check unhealthy, secondary unreachable, TTL too high for emergency failover, cross-account IAM denied, hosted zone deleted, primary and secondary both unhealthy) | List failures, do NOT execute |
| `READY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence, wait for operator yes |
| `COMPLETED` | Failover finished and post-verification passed (`test-dns-answer` returns secondary IP, primary health check still unhealthy, application reachable on secondary, no client error spike) | Emit verification results, monitoring plan |

**Priority order for pre-checks (apply in this sequence, all must pass for
READY):**

1. **Hosted zone reachability** — zone exists, NOT deleted, record set
   exists with the expected routing policy.
2. **Health check state** — health check exists; for failover routing the
   PRIMARY record's health check is monitored. If the primary health check
   is already unhealthy, Route 53 SHOULD be serving the secondary — verify
   via `test-dns-answer` before changing anything.
3. **Secondary endpoint reachability** — secondary IP/endpoint is actually
   serving traffic (TCP/HTTP probe from outside Route 53).
4. **TTL appropriateness** — for emergency failover the record TTL should
   be <= 60s (or a one-time TTL lower is required first). For planned
   failover any TTL is acceptable but propagation time = TTL.
5. **Cross-account IAM** — if the hosted zone is in a different account,
   the operator's role must have `route53:ChangeResourceRecordSets` on
   `arn:aws:route53:::hostedzone/<id>` granted by the zone-owning account.
6. **CloudWatch alarm wiring** — a CloudWatch alarm on the
   `AWS/Route53` `HealthCheckStatus` metric (or the endpoint's uptime
   metric) exists; without it, the next failover is silent.
7. **Client-side caching awareness** — browser / OS DNS caches may serve
   the old IP for up to TTL; the post-failover verification window must
   account for this.

Cost/time baselines (endpoint check $0.50 then $0.25 above 100, 10s fast vs 30s standard, TTL propagation, calculated checks free up to 256 children): [references/advanced-patterns.md](references/advanced-patterns.md).

## Mindset

**One-line takeaway:** a failover is not "complete" when the API returns
`PENDING` — it is complete when `test-dns-answer` returns the secondary
IP from all configured resolver regions AND application metrics confirm
the secondary is serving real traffic. Driven by three Route 53
realities:

The three realities in full (failover speed is TTL-bound; healthy does not mean working; cross-account zones need a zone-owning-account grant): [references/advanced-patterns.md](references/advanced-patterns.md).

## Pre-flight: hosted zone + record set gate

Run before classification. Misclassifying these produces wrong plans.

Pagination limits (list-resource-record-sets 300/page, list-health-checks 100/page): [references/diagnostic-commands.md](references/diagnostic-commands.md).

Live-account pre-flight commands 1-8 (list-hosted-zones-by-name, list-resource-record-sets, get-health-check, get-health-check-status, get-health-check-last-failure-reason, test-dns-answer from multiple resolvers, describe-alarms, cross-account profile check) moved verbatim to [references/diagnostic-commands.md](references/diagnostic-commands.md).
Load on demand before a live-account operation; offline plan audits skip it.

Malformed-input handling (ERROR verdict text and re-fetch remediation): [references/error-handling.md](references/error-handling.md).

| Attribute | Effect on operation |
|---|---|
| Hosted zone `Config.Comment` indicates delegation | Sub-domain delegated to another zone; changes here have no effect on the sub-domain. |
| Record `RoutingPolicy` is not what the operation expects | Wrong operation. Re-classify: a weighted failover requires `WeightedRoutingPolicy`; a failover swap requires `Failover` records. |
| Record `TTL > 300` and operation is `emergency-failover` | BLOCKED — lower TTL to 60 first, wait for old TTL to expire (or accept stale traffic). |
| PRIMARY record `HealthCheckId` is null | BLOCKED — no health check wired; Route 53 always serves PRIMARY. Wire a health check first. |
| Health check `Status: Healthy` but application is broken | False-healthy trap. Investigate the probe path before relying on the health check for failover decisions. |
| Health check `Status: Unhealthy` and operation is `planned-failover` | Route 53 may have already failed over. Verify `test-dns-answer` returns secondary before making changes. |
| Both PRIMARY and SECONDARY health checks `Unhealthy` | BLOCKED — Route 53 returns all records (no healthy target); fix the secondary first. |
| Cross-account zone and operator role lacks `route53:ChangeResourceRecordSets` | BLOCKED — request the grant from the zone-owning account. |
| `CalculatorConfig` present (calculated health check) | Verify child health checks individually; the parent's status is AND/OR of children. |

## Process — operation planning (apply in order)

### Step 0: Expert knowledge — non-obvious Route 53 behaviors

The 17 non-obvious behaviors (3+ checker regions, TTL is the failover contract, paired failover records, weighted vs failover routing, multivalue is not load balancing, latency fallback, geo+failover pairing, calculated checks, insulated child checks, test-dns-answer vs dig, alarm-based checks, cross-account IAM, UPSERT safety, eventual consistency, both-unhealthy last resort) moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).
Load on demand — each behavior changes a plan if ignored.

### Step 1: Pre-check gate — BLOCKED if any check fails

Run ALL pre-checks for the chosen operation. If ANY fails, the verdict
is BLOCKED with the failed checks in PRE_CHECKS. Do NOT execute.

**For ALL operations:**
1. Hosted zone exists (`list-hosted-zones-by-name` returns the zone).
2. Record set(s) exist with the expected `RoutingPolicy`.
3. Cross-account IAM grant present (if zone is in another account).
4. The `ChangeBatch` is well-formed (no duplicate names+types+set-
   identifiers; `UPSERT` actions specify all required fields for the
   routing policy).

**For planned-failover (weighted 100/0 -> 0/100):**
5. Both weighted records exist with `WeightedRoutingPolicy`.
6. The "next-primary" record's endpoint is reachable (TCP/HTTP probe).
7. The "next-primary" record's health check (if any) is `Healthy`.
8. The current-primary's `TTL` is appropriate for the failover window
   (recommend <= 300s; 60s for fast).

**For planned-failover (failover routing swap — make OLD primary the
secondary, OLD secondary the primary):**
5. PRIMARY and SECONDARY records exist with `Failover` policy.
6. PRIMARY health check exists and is currently `Healthy` OR the
   operator is intentionally inverting the topology (see failback).
7. The NEW primary (old SECONDARY) endpoint is reachable and its health
   check (if any) is `Healthy`.
8. The change-batch upserts BOTH records atomically (PRIMARY and
   SECONDARY in the same change-batch).

**For emergency-failover:**
5. PRIMARY health check is `Unhealthy` (the trigger for the emergency).
6. SECONDARY endpoint is reachable (independent probe outside Route 53).
7. SECONDARY's health check (if any) is `Healthy`.
8. TTL of the failover record: if > 60s, the plan must lower TTL first
   (UPSERT the record with TTL=60, wait old-TTL seconds, THEN swap) —
   OR the operator explicitly accepts stale-traffic window = old TTL.

**For failback (reverse a prior failover):**
5. The prior-failover's NEW primary (the secondary during the outage)
   is currently serving traffic (confirmed via `test-dns-answer`).
6. The prior PRIMARY's endpoint has been restored and its health check
   is `Healthy` for at least 2 consecutive intervals (avoid flapping).
7. TTL is <= 60s for the failback (or accept the stale window).
8. Application team has signed off on the failback timing.

**For create-health-check / update-health-check:**
5. The endpoint URL/port/path is reachable from at least one public IP
   (Route 53 checkers are on the public internet).
6. For HTTPS checks, the certificate is valid (not expired, hostname
   matches). Route 53 does NOT validate the cert by default — enable
   `EnableSNIProvisionally` and check `EnableSNI` for SNI support.
7. For search-string checks, the response body contains the string when
   healthy.
8. For CloudWatch-alarm-based checks, the alarm exists in the same
   region as the health check's CloudWatch metric.
9. For calculated checks, `ChildHealthChecks` references valid health
   check IDs and `InsufficientDataHealthStatus` is set intentionally.

**For diagnose-failover (read-only, no BLOCKED gate):**
5. Read `get-health-check-status`, `test-dns-answer`, and the failure-
   mode table to identify the root cause.

**For update-routing (change routing policy or weights):**
5. New `RoutingPolicy` is valid for the record type (A/AAAA only for
   multivalue; any for weighted/latency/geolocation/failover).
6. New weights sum to a sensible total (Route 53 normalizes, but a
   0-weight record gets NO traffic).
7. If changing FROM `WeightedRoutingPolicy` TO `Failover`, the change
   batch must DELETE the weighted records and CREATE the failover
   pair (you cannot UPSERT across routing policies).

**Failover failure-mode table (use during diagnose-failover):**

Failover failure-mode table (stale test-dns-answer, false-healthy probe, missing HealthCheckId, both records returned, checker IP blocks, string-not-found, cross-account AccessDenied, resolver cache, latency DB staleness, 0-weight, PENDING stuck): [references/error-handling.md](references/error-handling.md).

### Step 2: READY — emit operation plan

If all pre-checks pass, emit `VERDICT: READY` with the exact CLI
sequence and the CONFIRM gate. The plan includes:

What a READY plan includes (change-batch JSON, propagation estimate, side-effects, CONFIRM gate, verification): [references/advanced-patterns.md](references/advanced-patterns.md).

### Step 3: Execute behind CONFIRM gate

- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI
  (`change-resource-record-sets`, `update-health-check`,
  `delete-health-check`, `create-health-check`), emit:
  `CONFIRM: About to <operation> on <fqdn> in hosted zone <id> (account
  <account> region global). This will <consequence>. Proceed? (yes/no)`.
  Do NOT execute until the operator confirms.
Pre-state capture commands (record-set + test-dns-answer JSON snapshots) and get-change polling until INSYNC: [references/diagnostic-commands.md](references/diagnostic-commands.md).

### Step 4: Post-verification — COMPLETED

After the change reaches INSYNC, run post-verification. ALL checks must
pass for `COMPLETED`.

Post-verification probes 1-6 (test-dns-answer from three resolvers, dig +short, health check status, traffic shift metrics, weight distribution, old-IP absence): [references/diagnostic-commands.md](references/diagnostic-commands.md).

If ANY verification fails, emit `VERDICT: ERROR` with the failure
details — do not claim COMPLETED. A failed verification typically means
DNS caching is still serving the old IP (wait longer) or the change-
batch did not apply as expected (inspect the INSYNC record set).

## Output format (per operation)

Canonical OPERATION/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY/NOTES template: [references/worked-examples.md](references/worked-examples.md).
The STRICT output contract below is authoritative.

### Worked example — planned-failover (weighted 100/0 -> 0/100)

Full worked example (planned weighted 100/0 -> 0/100 flip, READY): [references/worked-examples.md](references/worked-examples.md).
The Perfect example output in the STRICT contract below shows the same shape.

Full worked example (emergency failover with Phase 1 TTL lowering and Phase 2 topology swap): moved verbatim to [references/worked-examples.md](references/worked-examples.md).

Full worked example (diagnose-failover BLOCKED because the secondary is also down, with fix order): moved verbatim to [references/worked-examples.md](references/worked-examples.md).

## STRICT output contract

This section codifies the exact output shape the eval harness asserts
against. Every invocation MUST produce output that matches this
contract or the response is rejected. The labels are case-sensitive
all-caps keywords — no markdown styling, no lowercase variants.

### Required output structure

Every response MUST be a single block with these literal labels, in
this order:

```text
OPERATION: <planned-failover | emergency-failover | failback | create-health-check | update-health-check | diagnose-failover | update-routing>
VERDICT: READY | BLOCKED | COMPLETED
TARGET: <fqdn> (hosted zone: <id>, routing policy: <policy>)
PRE_CHECKS:
  - [PASS|FAIL|WARN|INFO] <check description>
STEPS:
  1. <CONFIRM gate prompt>
  2. <CLI command or change-batch JSON with all fields populated>
  3. <wait / monitoring command>
POST_VERIFY:
  - [PASS|FAIL] <verification description>
NOTES: <TTL, propagation estimate, monitoring, caveats>
```

### FORBIDDEN output patterns

1. **NEVER output READY without verifying the health check status
   (get-health-check-status).** The health check observation status
   is the single most critical pre-check — a READY verdict without an
   explicit `[PASS] Health check <id> Status: Healthy|Unhealthy` row
   in PRE_CHECKS is rejected. The status must come from
   `get-health-check-status`, not `get-health-check` (which returns
   config, not runtime state).

2. **NEVER recommend a TTL > 300 for failover scenarios — low TTL
   (60s) is required for fast failover.** A plan that emits a
   failover record with TTL > 300 and does not include a TTL-lowering
   step first is a hard failure. For emergency failover with existing
   TTL > 60s, the plan MUST include Phase 1 (lower TTL) before Phase 2
   (topology swap).

3. **NEVER confuse weighted routing with failover routing — weighted
   shifts traffic gradually, failover is binary.** A plan that uses
   `Failover: PRIMARY/SECONDARY` records for a canary deployment, or
   uses `WeightedRoutingPolicy` for an automatic failover, is
   misclassified. The OPERATION label and the record routing policy
   must be consistent.

4. **NEVER emit STEPS without a CONFIRM gate preceding any
   state-changing CLI command.** Every STEPS block that includes
   `change-resource-record-sets`, `create-health-check`,
   `update-health-check`, or `delete-health-check` MUST have a
   `CONFIRM: About to <operation>...` prompt as the first step.
   Auto-executing without the gate is a hard failure.

5. **NEVER omit POST_VERIFY verification commands — a failover is
   COMPLETED only after `test-dns-answer` confirms the new IP.** A
   verdict of COMPLETED without `[PASS] test-dns-answer returns
   <new-IP>` in POST_VERIFY is rejected. INSYNC from the API is not
   sufficient — recursive resolvers cache up to TTL.

6. **NEVER submit a change-batch that UPSERTs only one record of a
   failover pair.** PRIMARY and SECONDARY must be in the SAME
   `change-resource-record-sets` batch — splitting them creates a
   window where neither record is in a consistent state.

### Perfect example output

```text
OPERATION: planned-failover
VERDICT: READY
TARGET: api.example.com (hosted zone: Z2ABCDEFGHIJK, routing policy: weighted)
PRE_CHECKS:
  - [PASS] Hosted zone Z2ABCDEFGHIJK exists, not deleted
  - [PASS] Weighted records found:
    api.example.com A SetIdentifier=blue  Weight=100  Value=10.0.0.10
    api.example.com A SetIdentifier=green Weight=0    Value=10.0.1.10
  - [PASS] Green endpoint 10.0.1.10 reachable on port 443 (TCP probe OK)
  - [PASS] Green health check h-abcdef1234 Status: Healthy
  - [PASS] Current TTL: 60s (acceptable for fast failover)
  - [PASS] Cross-account IAM: operator role authorized in zone account
  - [PASS] CloudWatch alarm api-example-failover exists on
    AWS/Route53 HealthCheckStatus
STEPS:
  1. CONFIRM: About to flip weighted routing on api.example.com in
     hosted zone Z2ABCDEFGHIJK (account 111111111111, global Route 53).
     Blue weight 100->0; Green weight 0->100. Traffic will shift from
     10.0.0.10 (blue) to 10.0.1.10 (green). DNS propagation bounded by
     60s TTL. Proceed? (yes/no)
  2. aws route53 change-resource-record-sets \
       --hosted-zone-id Z2ABCDEFGHIJK \
       --change-batch '{
         "Changes": [
           {"Action":"UPSERT","ResourceRecordSet":{
             "Name":"api.example.com.","Type":"A",
             "SetIdentifier":"blue","Weight":0,
             "TTL":60,"ResourceRecords":[{"Value":"10.0.0.10"}],
             "HealthCheckId":"h-blue123"}},
           {"Action":"UPSERT","ResourceRecordSet":{
             "Name":"api.example.com.","Type":"A",
             "SetIdentifier":"green","Weight":100,
             "TTL":60,"ResourceRecords":[{"Value":"10.0.1.10"}],
             "HealthCheckId":"h-abcdef1234"}}
         ]
       }'
  3. Capture ChangeInfo.Id; poll:
     aws route53 get-change --id <change-id>
     until Status: INSYNC (typically 5-30 seconds).
POST_VERIFY:
  - (pending execution)
NOTES:
  - DNS propagation: up to 60s for cached recursive resolvers (TTL).
    Uncached resolvers see the new answer within seconds of INSYNC.
  - Rollback: re-run the same change-batch with weights inverted
    (blue=100, green=0). Keep the rollback command ready.
  - Watch the application error-rate dashboard for 2x TTL post-change
    (120s) to catch a bad green deployment before declaring COMPLETED.
```

## Anti-Patterns — NEVER

- NEVER submit an emergency failover change-batch without first lowering
  the TTL to 60s (or explicitly accepting the stale-traffic window =
  old TTL). A 300s TTL means up to 5 minutes of traffic continues to
  the down primary even after Route 53 stops returning it.

- NEVER assume `Status: INSYNC` from `ChangeResourceRecordSets` means
  clients see the new IP. INSYNC means Route 53's authoritative servers
  have the change. Recursive resolvers and OS DNS caches serve stale
  answers up to TTL. Verify with `dig` from multiple resolvers.

- NEVER trust a single health check as the sole failover trigger. A
  shallow probe (`/health` returning 200) reports healthy even when the
  app is broken everywhere else. Pair with a calculated health check
  (AND) that includes a CloudWatch alarm on a real business metric.

- NEVER operate failover routing without a SECONDARY record. A PRIMARY
  record alone, when unhealthy, causes Route 53 to return NO answer
  (NXDOMAIN-like behavior for that record). The failover contract
  requires the pair.

- NEVER submit a change-batch that UPSERTs only one of the failover
  pair. PRIMARY and SECONDARY must be updated in the SAME change-batch
  (Route 53 applies changes atomically within a batch). Splitting them
  risks a window where neither record is in a consistent state.

- NEVER delete a health check that is still associated with a record
  set. Route 53 will treat the record as always-healthy (or always-
  unhealthy depending on policy) once the check is gone. Always
  disassociate (`UPSERT` the record without `HealthCheckId`) before
  `delete-health-check`.

- NEVER use weighted routing with a 0-weight on BOTH records. Route 53
  returns nothing for the name. At least one record must have weight
  >= 1.

- NEVER assume a cross-account operator role has Route 53 access by
  default. The zone-owning account MUST grant the operator's role ARN
  via an inline policy or RAM share. Identity-based policies in the
  operator account are not sufficient on their own.

- NEVER rely on `dig` from a single network for failover verification.
  Different recursive resolvers cache independently. Probe at least
  `1.1.1.1`, `8.8.8.8`, and `9.9.9.9`. Use `test-dns-answer` for
  authoritative truth.

- NEVER use `CREATE` action in a failover change-batch when the record
  might already exist. `CREATE` fails if the record exists. Use
  `UPSERT`. Use `DELETE` only when you intend to remove the record.

- NEVER treat multivalue answer routing as load balancing. It returns
  up to 8 healthy IPs per query, shuffled, but clients pick one and
  stick with it. Multivalue is for spreading load across many
  endpoints, not for primary/secondary failover.

- NEVER assume latency routing will fail over. It falls back to the
  next-lowest-latency healthy region automatically. There is no
  explicit failover record needed. But if ALL regions are unhealthy,
  latency routing returns all records (last-resort).

- NEVER change routing policy (e.g., from Weighted to Failover) via a
  single UPSERT. Routing policy is fixed per record. You must DELETE
  the old-policy record(s) and CREATE the new-policy record(s) in the
  same change-batch.

- NEVER auto-execute a state-changing Route 53 CLI without the CONFIRM
  gate. Failovers have traffic-shifting side effects that can storm
  the workload if the target is unprepared.

- NEVER failback to a primary that has been Healthy for less than 2
  consecutive health check intervals. A flapping primary causes
  repeated failover/failback cycles that destabilize the workload.

- NEVER block on a calculated health check's `InsufficientDataHealthStatus`
  default. If child checks have insufficient data, the calculated
  check's behavior depends on this setting (Healthy/Unhealthy/LastKnown-
  GoodStatus). Set it explicitly to match the workload's risk tolerance.

## Pre-flight safety checks (run before any remediation CLI)

- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation
  (`change-resource-record-sets`, `create-health-check`,
  `update-health-check`, `delete-health-check`), emit: `CONFIRM: About
  to <operation> on <fqdn> in hosted zone <id> (account <account>,
  global Route 53). This will <consequence>. Proceed? (yes/no)`. Do
  NOT execute until the operator confirms.

- **Capture pre-state for rollback.** Before any failover:
  `aws route53 list-resource-record-sets --hosted-zone-id <id> --output
  json > /tmp/<id>-rrsets-pre-$(date +%s).json` AND `aws route53
  test-dns-answer --hosted-zone-id <id> --record-name <fqdn>
  --record-type A --resolver-ip 1.1.1.1 --output json > /tmp/<fqdn>-
  dnsanswer-pre-$(date +%s).json`. These captures are critical for
  rollback — if the failover makes things worse, you need the exact
  pre-change record set to revert.

- **Verify the failover target is healthy before swapping.** For
  planned and failback operations, the new primary's health check must
  be `Healthy` for >= 2 consecutive intervals. For emergency
  operations, the secondary endpoint must be independently reachable
  even if no health check is wired.

- **Verify the change-batch is well-formed.** All records in a
  failover pair must be in the same change-batch. `UPSERT` actions
  must specify `Name`, `Type`, `TTL`, and the routing-policy-specific
  fields (`Weight`, `Failover`, `Region`, `GeoLocation`, or
  `MultiValueAnswer`).

- **Prefer additive changes over destructive ones.** Lowering TTL,
  adding a SECONDARY record, and creating a health check are
  reversible. DELETing a record or a health check is hard to reverse —
  do it only after confirming the new state is stable.

- **Poll `get-change` until `INSYNC`.** The `ChangeResourceRecordSets`
  API returns immediately with `PENDING`. Authoritative DNS only
  reflects the change after `INSYNC`. Do not declare COMPLETED based
  on the API response alone.

## Recent AWS features (2024-2026)

Recent AWS features (EnableSNI GA, alarm-based checks, InsufficientDataHealthStatus, insulated child checks, RAM cross-account sharing, test-dns-answer multiple resolver IPs, Resolver DNS Firewall, CidrRoutingConfig): [references/advanced-patterns.md](references/advanced-patterns.md).

## References (load on demand)

- [Advanced patterns](references/advanced-patterns.md) — cost/time baselines, mindset realities, Step 0 non-obvious behaviors, READY plan contents, recent AWS features
- [Diagnostic commands](references/diagnostic-commands.md) — pagination limits, live-account pre-flight, pre-state capture, post-verification probes
- [Error handling](references/error-handling.md) — malformed input handling, failover failure-mode table
- [Worked examples](references/worked-examples.md) — canonical output template, planned-failover, emergency-failover, diagnose-failover examples
- [Failover routing policies](references/failover-routing-policies.md) — routing policy semantics reference
- [Health check procedures](references/health-check-procedures.md) — health check create/update procedures

## Domain

AWS CloudOps / Route 53 DNS Failover, Health Checks & Disaster Recovery.

## AWS documentation

- **Route 53 Developer Guide** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/
- **Health checks** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html
- **Routing policies** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html
- **Configuring DNS failover** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html
- **Calculated health checks** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-type-calc.html
- **Cross-account hosted zones** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/Cross-Account-Zones.html
- **Route 53 API Reference** — https://docs.aws.amazon.com/Route53/latest/APIReference/
- **Route 53 CLI Reference** — https://docs.aws.amazon.com/cli/latest/reference/route53/
- **Route 53 checker IP ranges** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/route-53-ip-addresses.html

