dr-failover-automator
Designs AWS disaster recovery failover automation across the four DR strategies (backup & restore, pilot light, warm standby, multi-site active/active), Route 53 health-checked failover records, Aurora Global Database planned + unplanned failover, S3 cross-region replication failover, RDS cross-region read replica promotion, Elastic Disaster Recovery (DRS) launch, AWS Backup cross-region restore, cross-zone + cross-region load balancing (Global Accelerator), Lambda multi-region, and Step Functions orchestration of the canonical failover sequence (health check, promote, DNS, verify, notify). Includes AWS Resilience Hub readiness assessment and Elastic DRS non-blocking agent. Emits AUTOMATED with failover runbook or MANUAL_STEP_REQUIRED with the gap. Use when designing DR failover, RTO/RPO analysis, or resilience assessment.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-24
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- dr-failover-automator
- license
- Apache-2.0
- metadata
- { "tags": "disaster-recovery, route53, aurora-global, elastic-drs, aws-backup, resilience-hub, stepfunctions, automate", "phase": "4", "author": "Jacky Chan — AWS Community Builder", "domain": "aws-cloudops", "family": "Management", "version": "0.1.0", "keywords": "disaster recovery, DR failover, backup and restore, pilot light, warm standby, multi-site active-active, Route 53 health check, Route 53 failover record, Aurora Global Database, cross-region read replica, Elastic Disaster Recovery, DRS launch, CloudEndure migration, AWS Backup cross-region restore, cross-zone load balancing, Global Accelerator, Lambda multi-region, Step Functions failover orchestration, AWS Resilience Hub, RTO RPO, S3 cross-region replication", "task_type": "automate", "complexity": "high", "entry_point": "false", "skill_class": "capability", "when_to_use": "Designing a DR failover plan, picking among backup-restore / pilot light / warm standby / multi-site strategies, wiring Route 53 health-checked DNS failover, automating Aurora Global Database or RDS cross-region replica promotion, orchestrating Elastic Disaster Recovery (DRS) launch, centralizing AWS Backup cross-region restore, deploying Lambda multi-region with Route 53 failover, building a Step Functions failover orchestrator (health check -> promote -> DNS -> verify -> notify), or running an AWS Resilience Hub readiness assessment.", "requires_llm": "true", "verdict_shape": "AUTOMATED | MANUAL_STEP_REQUIRED", "when_not_to_use": "Single-region high availability (use autoscaling / multi-AZ skills — DR is cross-region by definition)., Backup-only design with no failover component (use backup / data-protection skills)., Application-level health check design (use app-monitoring skills — this skill automates failover, not monitoring)., Migration planning (use migration skills — DR is about failover, not lift-and-shift).", "lifecycle_status": "active", "invocation_schema": "Input: either (a) a DR requirement (\"design pilot-light DR for a three-tier app, RTO 30min, RPO 5min, us-east-1 -> us-west-2\"), OR (b) an existing failover workflow / Route 53 configuration / Aurora Global cluster to audit and harden. Output: deterministic DR block per requirement — STRATEGY/FAILOVER/ORCHESTRATION/VERIFICATION/ VERDICT — where VERDICT is AUTOMATED (failover runbook complete with all gates passing) or MANUAL_STEP_REQUIRED (specific gap cited, e.g., health check missing, untested RDS promotion, no break-glass notification path).", "supports_pipeline": "true", "activation_triggers": "DR failover automation, Route 53 health-checked failover, Aurora Global Database failover, RDS cross-region read replica promotion, Elastic Disaster Recovery launch, pilot light DR strategy, warm standby DR, multi-site active active, AWS Backup cross-region restore, Lambda multi-region deploy, Step Functions failover orchestrator, Resilience Hub readiness assessment, RTO RPO analysis, S3 cross-region replication failover" }
- description
- Designs AWS disaster recovery failover automation across the four DR strategies (backup & restore, pilot light, warm standby, multi-site active/active), Route 53 health-checked failover records, Aurora Global Database planned + unplanned failover, S3 cross-region replication failover, RDS cross-region read replica promotion, Elastic Disaster Recovery (DRS) launch, AWS Backup cross-region restore, cross-zone + cross-region load balancing (Global Accelerator), Lambda multi-region, and Step Functions orchestration of the canonical failover sequence (health check, promote, DNS, verify, notify). Includes AWS Resilience Hub readiness assessment and Elastic DRS non-blocking agent. Emits AUTOMATED with failover runbook or MANUAL_STEP_REQUIRED with the gap. Use when designing DR failover, RTO/RPO analysis, or resilience assessment.
- compatibility
- Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan authoring. Live deployment uses aws route53 change-resource-record-sets (failover record, health check), aws rds failover-global-cluster (Aurora Global), promote-read-replica (RDS cross-region), aws drs start-recovery (Elastic DRS), aws backup start-restore-job (cross-region restore), aws elasticloadbalancing modify-load-balancer-attributes (cross-zone), aws lambda...
02 资源文件 20
- 参考文档eval/test-cases.yaml8.4 KB
- 参考文档evals/baselines/aurora-unplanned-failover.md769 B
- 参考文档evals/baselines/drs-ec2-recovery.md834 B
- 参考文档evals/baselines/no-verification-split-brain.md804 B
- 参考文档evals/baselines/pilot-light-aurora-global.md875 B
- 参考文档evals/baselines/warm-standby-route53.md854 B
- 参考文档evals/eval_config.yaml1.6 KB
- 参考文档evals/evals.json4.2 KB
- 参考文档evals/prompts/aurora-unplanned-failover.md1.8 KB
- 参考文档evals/prompts/drs-ec2-recovery.md1.4 KB
- 参考文档evals/prompts/no-verification-split-brain.md1.8 KB
- 参考文档evals/prompts/pilot-light-aurora-global.md1.5 KB
- 参考文档evals/prompts/warm-standby-route53.md1.3 KB
- 参考文档example/README.md4.8 KB
- 参考文档references/advanced-patterns.md4.3 KB
- 参考文档references/diagnostic-commands.md1.6 KB
- 参考文档references/dr-strategy-deep-dive.md8.6 KB
- 参考文档references/failover-orchestration-patterns.md11.8 KB
- 参考文档references/worked-examples.md1.7 KB
- 参考文档skill.usf.yaml4.5 KB
03 SKILL.md 正文
DR Failover Automator
What this skill does
Designs automated AWS disaster recovery failover across the four canonical DR strategies — backup & restore, pilot light, warm standby, and multi-site active/active — and the building blocks that compose each: Route 53 health-checked DNS failover, Aurora Global Database failover, RDS cross-region read replica promotion, Elastic Disaster Recovery (DRS) launch, AWS Backup cross-region restore, cross-zone / cross-region load balancing, Lambda multi-region deployment, and Step Functions orchestration of the canonical failover sequence (health check -> promote primary -> update DNS -> verify -> notify).
The verdict is binary: AUTOMATED when the runbook covers a chosen strategy with mapped RTO/RPO targets, a defined trigger (health check or manual), the full failover sequence, verification step, and rollback path; MANUAL_STEP_REQUIRED when any component is missing (e.g., health check threshold undefined, untested promotion, no verification hook, no break-glass notification).
Quick navigation
| # | Section | Jump when |
|---|---|---|
| 1 | Pre-flight gate | Starting any DR design — blocks unsafe specs |
| 2 | Decision tree | Backup-restore / pilot light / warm standby / multi-site |
| 3 | Route 53 failover | DNS-level failover with health checks |
| 4 | Aurora Global Database | Planned + unplanned cross-region DB failover |
| 5 | RDS cross-region replica | Cross-region read replica promotion |
| 6 | Elastic Disaster Recovery | DRS launch + recovery instance |
| 7 | AWS Backup cross-region | Cross-region restore orchestration |
| 8 | S3 cross-region replication | CRR + Route 53 client failover |
| 9 | Load balancer failover | ALB/NLB cross-zone, Global Accelerator |
| 10 | Lambda multi-region | SAM multi-region + Route 53 failover |
| 11 | Step Functions orchestrator | The canonical failover state machine |
| 12 | Resilience Hub | DR readiness scoring + drift detection |
| 13 | STRICT output contract | The exact DR block the skill emits |
| 14 | NEVER anti-patterns | The hardcoded list of DR taboos |
| 15 | Expert heuristic | Non-obvious behaviors that change the design |
| 16 | Recent AWS features | Managed planned failover, non-blocking DRS, Resilience Hub |
Mindset
One-line takeaway: disaster recovery is RTO + RPO + tested failover. An untested failover plan is documentation, not DR. The first time you promote a cross-region Aurora Global cluster should be in a game-day exercise — not during a real outage when the database is down and everyone is stressed.
- The DR strategy is a cost/continuum trade-off, not a binary. Backup-and-restore is cheapest but highest RTO/RPO. Multi-site active/active is most expensive but lowest RTO/RPO (near-zero). The right strategy meets the business RTO/RPO at the lowest cost.
- Route 53 health checks fail in 10-60 seconds; DNS TTL adds to that. A failover record with a 60s TTL + 30s health check interval gives ~90s DNS-level RTO. Client/resolver caching can push effective RTO to 5+ minutes.
- Failover without verification is a footgun. A health check that triggers a promotion before the primary is truly down causes a split-brain — two primaries accepting writes. Always verify the primary is unreachable before promoting the secondary.
Pre-flight: DR spec gate (run before generation)
| Attribute | Required | Effect on plan |
|---|---|---|
application_tier |
YES | Determines building blocks (DB, compute, storage, DNS) |
rto_target_minutes |
YES | Determines strategy (backup, pilot, warm, multi-site) |
rpo_target_minutes |
YES | Determines replication mode (async, sync, snapshot interval) |
primary_region |
YES | Source region |
secondary_region |
YES | DR region |
compliance_framework |
Recommended | PCI/HIPAA/FedRAMP may mandate tested DR |
existing_failover |
For audit mode | When provided, run the layer gates |
If the spec is incomplete, output:
STRATEGY: <unknown>
FAILOVER: <unknown>
ORCHESTRATION: <unknown>
VERIFICATION: <unknown>
VERDICT: MANUAL_STEP_REQUIRED
REASON: Spec is missing required fields (<list>).
REQUIRED:
- application_tier (web | app | db | mixed)
- rto_target_minutes (integer)
- rpo_target_minutes (integer)
- primary_region, secondary_region
REMEDIATION: Provide all required fields. Example: "design pilot-light
DR for a 3-tier app, RTO 30min, RPO 5min, us-east-1 -> us-west-2"
maps to application_tier=mixed, rto_target_minutes=30,
rpo_target_minutes=5.
Live-account pre-flight checks (skip for offline authoring): Moved verbatim to references/diagnostic-commands.md - load on demand (see References below).
Decision tree — strategy selection
START
├─ rto > 24h AND rpo > 24h? ─────────────► Backup & Restore
├─ rto 1-24h AND rpo 15min-1h? ──────────► Pilot Light
├─ rto 1-60min AND rpo < 15min? ─────────► Warm Standby
├─ rto < 1min AND rpo ~0? ───────────────► Multi-Site Active/Active
└─ (insufficient objectives) ─────────────► MANUAL_STEP_REQUIRED
| Strategy | RTO | RPO | Cost | When to use |
|---|---|---|---|---|
| Backup & restore | Hours-days | Hours-days | 1x storage | Archives, dev, low-criticality |
| Pilot light | 10min-1h | Minutes | 1x replica | Tier 2-3 apps |
| Warm standby | Single-digit min | Seconds-min | 50-100% secondary | Tier 1 apps |
| Multi-site active/active | Near-zero | Near-zero | 200% duplicate | Tier 0 / revenue-critical |
Component-to-building-block mapping:
| Component | RPO target | Building block |
|---|---|---|
| Aurora DB | < 1s | Aurora Global Database (async, ~1s lag) |
| Aurora DB | 5min (PITR) | Aurora automated backup (5-min PITR) |
| RDS MySQL/PostgreSQL | < 1s | Cross-region read replica (async) |
| DynamoDB | Near-zero | DynamoDB Global Tables (multi-region active-active) |
| S3 data | < 15min | S3 cross-region replication (CRR) |
| EBS volumes | Hours | AWS Backup cross-region copy |
| EC2 stateful | Hours | Elastic DRS continuous replication |
Route 53 health-checked failover
# Create health check on the primary
HC_ID=$(aws route53 create-health-check \
--caller-reference "primary-hc-$(date +%s)" \
--health-check-config '{
"Type": "HTTPS",
"FullyQualifiedDomainName": "primary.example.com",
"Port": 443,
"ResourcePath": "/health",
"RequestInterval": 30,
"FailureThreshold": 3
}' --query 'HealthCheck.Id' --output text)
# Create failover routing policy
aws route53 change-resource-record-sets --hosted-zone-id <zone-id> \
--change-batch '{
"Changes": [
{"Action":"CREATE","ResourceRecordSet":{
"Name":"app.example.com","Type":"A",
"SetIdentifier":"primary","Failover":"PRIMARY",
"AliasTarget":{"HostedZoneId":"Z2FDTNDATAQYW2",
"DNSName":"primary-alb.us-east-1.elb.amazonaws.com",
"EvaluateTargetHealth":true},
"HealthCheckId":"'"$HC_ID"'"}},
{"Action":"CREATE","ResourceRecordSet":{
"Name":"app.example.com","Type":"A",
"SetIdentifier":"secondary","Failover":"SECONDARY",
"AliasTarget":{"HostedZoneId":"Z2FDTNDATAQYW2",
"DNSName":"secondary-alb.us-west-2.elb.amazonaws.com",
"EvaluateTargetHealth":true}}}
]
}'
Routing policies: Failover (primary->secondary on health check failure), Weighted (split 90/10), Latency (route to lowest-latency region), Geolocation (route by client geography).
Gotchas: TTL matters — a 60s TTL gives 60s client cache. Health
check FailureThreshold x RequestInterval = detection time (3 x 30s
= 90s). EvaluateTargetHealth: true cascades health to the ALB/NLB.
Aurora Global Database failover
Aurora Global provides a primary cluster in one region + up to 5 secondary read-only clusters. Storage-level async replication (~1s lag).
Managed planned failover (2024-2025)
aws rds failover-global-cluster \
--global-cluster-identifier my-global-cluster \
--target-db-cluster-identifier arn:aws:rds:us-west-2:111111111111:cluster:my-secondary
Promotes secondary in < 1 minute with no data loss. Use for DR drills and controlled failover.
Unplanned failover (outage)
# Detach + promote secondary (standalone writable cluster)
aws rds remove-from-global-cluster \
--db-cluster-identifier arn:aws:rds:us-west-2:111111111111:cluster:my-secondary \
--global-cluster-identifier my-global-cluster
# Update Route 53 to point at new primary; verify application writes
May lose the last ~1s of writes (replication lag). After unplanned failover, the old primary cannot rejoin — rebuild the global cluster.
RDS cross-region read replica promotion
For non-Aurora RDS (MySQL, PostgreSQL):
# One-time setup: create cross-region read replica
aws rds create-db-instance-read-replica \
--db-instance-identifier my-db-replica \
--source-db-instance-identifier arn:aws:rds:us-east-1:111111111111:db:my-db \
--region us-west-2
# On failover: promote to standalone
aws rds promote-read-replica \
--db-instance-identifier my-db-replica --region us-west-2
Gotchas: promotion breaks replication — the original primary cannot re-add as a replica without re-snapshot. Cross-region async replication has lag (seconds-minutes). Promotion takes 5-20 minutes (account for this in RTO).
Elastic Disaster Recovery (DRS)
DRS provides continuous block-level replication from source servers to a staging area in the DR region. On failover, launches EC2 recovery instances from the replicated data.
Launch recovery instances
aws drs start-recovery \
--source-servers i-0primary1,i-0primary2 \
--is-drill false
Non-blocking agent (2024-2025)
Decouples replication from application I/O — source-server performance is not impacted under heavy write load. Older agents blocked I/O during replication bursts.
Drill mode
aws drs start-recovery --source-servers i-0primary1 --is-drill true
Launches recovery instances in an isolated subnet without affecting production. Run quarterly drills.
Gotchas: DRS does NOT replicate IAM role, security group, or tags — configure in launch templates. Recovery launch takes 5-30 min. Staging area cost is continuous. CloudEndure is being sunset — migrate to DRS.
AWS Backup cross-region restore
# Cross-region copy in backup plan
aws backup create-backup-plan --backup-plan '{
"BackupPlanName":"cross-region-daily",
"Rules":[{
"RuleName":"DailyBackup",
"TargetBackupVaultName":"Default",
"ScheduleExpression":"cron(0 5 ? * * *)",
"CopyActions":[{
"DestinationBackupVaultArn":"arn:aws:backup:us-west-2:111111111111:backup-vault:Default",
"Lifecycle":{"DeleteAfterDays":30}
}]
}]
}'
# Restore on failover
aws backup start-restore-job \
--recovery-point-arn arn:aws:backup:us-west-2:111111111111:recovery-point:1-xxx \
--metadata '{"InstanceType":"t3.large","VpcId":"vpc-xxx"}' \
--iam-role-arn arn:aws:iam::111111111111:role/AWSBackupRestoreRole \
--resource-type EC2
Gotchas: restore time scales with snapshot size (1TB EBS = 30-60min). Cross-region copy happens after local backup completes. RPO = backup interval + copy time.
S3 cross-region replication failover
aws s3api put-bucket-replication --bucket primary-bucket \
--replication-configuration '{
"Role":"arn:aws:iam::111111111111:role/S3ReplicationRole",
"Rules":[{"Status":"Enabled","Priority":1,
"Destination":{"Bucket":"arn:aws:s3:::secondary-bucket"},
"Filter":{}}]
}'
Failover pattern: Route 53 failover records pointing at the two buckets (via CloudFront), OR update application S3 client to the secondary bucket ARN. S3 CRR is async — recent objects may not yet be replicated at failover. Use S3 Batch Operations post-failover to identify and re-upload missing objects.
Load balancer cross-zone + cross-region
Cross-zone (within region)
aws elbv2 modify-load-balancer-attributes \
--load-balancer-arn <alb-arn> \
--attributes Key=load_balancing.cross_zone.enabled,Value=true
ALB cross-zone is on by default. NLB cross-zone is off by default.
Cross-region (Global Accelerator)
aws globalaccelerator create-accelerator --name dr-global-accelerator
# Primary endpoint group: traffic-dial-percentage 100
# Secondary endpoint group: traffic-dial-percentage 0
# Flip dials on failover
Global Accelerator provides static anycast IPs that route to the nearest healthy regional endpoint. Sub-second failover — better than DNS TTL.
Lambda multi-region deployment
sam package --template-file template.yaml \
--s3-bucket sam-bucket-us-east-1 --output-template-file packaged.yaml
sam deploy --template-file packaged.yaml --stack-name my-fn --region us-east-1
sam deploy --template-file packaged.yaml --stack-name my-fn --region us-west-2
Front with Route 53 failover records pointing at regional API Gateway / Function URL. Gotcha: Lambda env vars and IAM roles are region-specific. Use Parameter Store cross-region replication or Secrets Manager replica for shared config.
Step Functions failover orchestration
The canonical failover sequence: health check -> promote primary -> update DNS -> verify -> notify. Moved verbatim to references/failover-orchestration-patterns.md - load on demand (see References below).
Always prefer waitForTaskToken for human approval gates — pauses
cleanly, resumes on callback. Avoid Wait with fixed duration (clutters
dashboard, may hit 1-year execution limit).
AWS Resilience Hub readiness assessment
aws resiliencehub create-app --app-name my-dr-app \
--resource-mappings '[{"PhysicalResourceId":"arn:aws:rds:us-east-1:111111111111:cluster:my-db","LogicalResourceId":{"Identifier":"my-db"},"MappingType":"CfnStack"}]'
aws resiliencehub start-app-assessment \
--app-arn arn:aws:resiliencehub:<region>:<account>:app/123 \
--app-version-name release-1 --assessment-name dr-readiness-2026-08
Returns a compliance score + recommendations ("add Aurora Global for RPO < 1s compliance"). Use as the readiness gate for go-live. Requires the app components be modeled as CloudFormation, Terraform, or AppRegistry. Schedule monthly assessments to detect drift.
Output format (STRICT output contract)
STRATEGY: <backup-restore | pilot-light | warm-standby | multi-site>
RTO_TARGET: <minutes>
RPO_TARGET: <minutes>
REGIONS: primary=<region>, secondary=<region>
FAILOVER:
- [PASS|FAIL] Route 53 health check configured (interval, threshold)
- [PASS|FAIL] Primary verification step (prevent split-brain)
- [PASS|FAIL] Secondary promotion mechanism defined
- [PASS|FAIL] DNS update step
- [PASS|FAIL] Verification step post-failover
- [PASS|FAIL] Rollback path documented
ORCHESTRATION:
- [PASS|FAIL] Step Functions state machine (or equivalent)
- [PASS|FAIL] Kill-switch implemented
- [PASS|FAIL] Human approval gate (task-token or manual)
VERIFICATION:
- [PASS|FAIL] Game-day drill run within last 90 days
- [PASS|FAIL] Resilience Hub assessment score >= target
- [PASS|FAIL] Health check threshold tuned (not too sensitive)
VERDICT: AUTOMATED | MANUAL_STEP_REQUIRED
FINDINGS:
- [INFO|WARN|HIGH|CRITICAL] <observation>
REMEDIATION:
1. <step 1>
2. <step 2>
Worked example — AUTOMATED pilot light
STRATEGY: pilot-light
RTO_TARGET: 30
RPO_TARGET: 5
REGIONS: primary=us-east-1, secondary=us-west-2
FAILOVER:
- [PASS] Route 53 health check: HTTPS /health, interval=30s, threshold=3
- [PASS] Primary verification: Lambda dr-verify-primary-down (3 retries, backoff)
- [PASS] Aurora Global Database managed failover (failover-global-cluster)
- [PASS] DNS update: Route 53 failover record UPSERT to secondary ALB
- [PASS] Post-failover verification: Lambda dr-verify-secondary-up
- [PASS] Rollback path documented (reverse DNS, failback via snapshot rebuild)
ORCHESTRATION:
- [PASS] Step Functions state machine dr-failover-orchestrator
- [PASS] Kill-switch: Parameter Store /dr/kill-switch (checked first)
- [PASS] Human approval via SQS task token (no fixed Wait)
VERIFICATION:
- [PASS] Game-day drill: 2026-07-15, RTO measured 22min, RPO 1s
- [PASS] Resilience Hub assessment: compliance score 92
- [PASS] Health check threshold tuned (3 failures, 30s = 90s detection)
VERDICT: AUTOMATED
FINDINGS:
- [INFO] Aurora Global replication lag: 1s typical, 5s max observed
- [WARN] DRS source servers: 4 of 5 in sync, 1 lagging
REMEDIATION:
1. Re-sync lagging DRS source server i-0primary5
2. Add ElastiCache cross-region replication for session state
Worked example — MANUAL_STEP_REQUIRED (no verification)
Moved verbatim to references/worked-examples.md - load on demand (see References below).
NEVER (these things)
-
NEVER failover without first verifying the primary is truly down. A transient health check failure (network blip, brief ALB 5xx) triggers promotion of the secondary while the primary is still serving writes — split-brain, data divergence, irrecoverable state. Always run a verify-primary-down step with retries before promoting.
-
NEVER skip the game-day drill. An untested failover plan is a wish. Aurora Global failover, RDS replica promotion, DRS launch — all have subtle behaviors (lag, IAM, launch template drift) that surface only on first execution. Run drills quarterly; document the measured RTO.
-
NEVER rely on a single Route 53 health check as the failover trigger. Health checks have false positives (network blips, health endpoint bugs). Use a verification Lambda + Step Functions with retries as the actual trigger, not the health check directly.
-
NEVER auto-failover without a kill-switch. A misconfigured health check endpoint causes endless failover flapping. The kill-switch lets you stop the orchestrator while debugging.
-
NEVER assume Aurora Global failover is automatic. Out of the box, Aurora Global does NOT auto-failover. Managed Planned Failover (2024) handles the planned case; unplanned requires manual or Step Functions orchestration via
remove-from-global-cluster.
Expert heuristic callouts
Moved verbatim to references/advanced-patterns.md - load on demand (see References below).
Pre-flight safety checks
Moved verbatim to references/diagnostic-commands.md - load on demand (see References below).
Edge-case handling
Moved verbatim to references/advanced-patterns.md - load on demand (see References below).
Recent AWS features (2024-2026)
Moved verbatim to references/advanced-patterns.md - load on demand (see References below).
References (load on demand)
- references/worked-examples.md — secondary worked example (MANUAL_STEP_REQUIRED) moved from SKILL.md
- references/advanced-patterns.md — expert heuristics, edge-case handling, 2024-2026 features moved from SKILL.md
- references/diagnostic-commands.md — live pre-flight checks + pre-failover safety checks moved from SKILL.md
- references/failover-orchestration-patterns.md — canonical Step Functions failover ASL moved from SKILL.md
- references/dr-strategy-deep-dive.md — DR strategy cost/RTO-RPO deep dive
Domain
AWS CloudOps / Disaster Recovery Failover Automation.
AWS documentation
- AWS Disaster Recovery — https://docs.aws.amazon.com/wellarchitected/latest/disaster-recovery/
- AWS Elastic Disaster Recovery — https://docs.aws.amazon.com/drs/latest/userguide/
- AWS Resilience Hub — https://docs.aws.amazon.com/resilience-hub/latest/userguide/
- Amazon Aurora Global Database — https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html
- AWS Backup — https://docs.aws.amazon.com/aws-backup/latest/devguide/
- Amazon Route 53 Health Checks — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html
- AWS Global Accelerator — https://docs.aws.amazon.com/global-accelerator/latest/dg/
- AWS Step Functions — https://docs.aws.amazon.com/step-functions/latest/dg/
- AWS DR Blog — https://aws.amazon.com/blogs/architecture/
04 同仓库更多 Skills
xray-tracing-deployer
Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL / method / service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry / ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS / EKS / Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.
wellarchitected-workload-auditor
Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.
wellarchitected-review-operator
Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer / get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.
wafv2-web-acl-deployer
Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB/API Gateway/CloudFront, or configuring CAPTCHA/Challenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.
wafv2-web-acl-auditor
Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow/bypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.
waf-rule-deployer
Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.