Cloud DR Patterns
Disaster recovery architectures: pilot light, warm standby, multi-region active-active with RTO/RPO calculations.
📄 Product Preview
Try the interactive reader and demo tools below, or get the full product with all content unlocked.
📖 Interactive Reader (Free Preview) ⚙ Try Demo Tools 📦 Download Free Sample📁 File Structure 25 files
📖 Documentation Preview README excerpt
Cloud Disaster Recovery Architecture Kit
Production-ready disaster recovery patterns with IaC templates, RTO/RPO calculators, and operational runbooks.
Overview
This kit provides three battle-tested DR architecture patterns for AWS, each with complete CloudFormation and Terraform templates, automated failover scripts, and operational documentation. Whether you need a cost-efficient pilot light setup or a zero-downtime multi-region active-active deployment, this kit gives you the infrastructure code and decision frameworks to implement it.
What's Included
| File | Description |
|---|---|
cloudformation/pilot-light.yaml | Pilot light DR pattern — minimal footprint, lowest cost |
cloudformation/warm-standby.yaml | Warm standby — pre-scaled secondary region |
cloudformation/multi-region-active-active.yaml | Active-active multi-region with Global Accelerator |
cloudformation/shared-networking.yaml | Cross-region VPC peering and Transit Gateway |
terraform/pilot-light.tf | Terraform equivalent of pilot light pattern |
terraform/warm-standby.tf | Terraform equivalent of warm standby pattern |
terraform/multi-region-active-active.tf | Terraform active-active with Route 53 health checks |
terraform/variables.tf | Shared Terraform variables for all patterns |
scripts/rto_rpo_calculator.py | Interactive RTO/RPO calculator with cost modeling |
scripts/failover_validator.py | Pre-failover validation checks |
scripts/dr_test_scheduler.py | DR test scheduling and reporting tool |
docs/architecture.md | Reference architecture with diagrams |
docs/dr-runbook.md | Step-by-step failover/failback runbook |
docs/dr-testing-guide.md | DR testing strategy and game day playbook |
examples/pilot-light-params.json | Example parameters for pilot light deployment |
examples/warm-standby-params.json | Example parameters for warm standby |
examples/active-active-params.json | Example parameters for active-active |
examples/rto-rpo-requirements.json | Sample RTO/RPO requirements document |
Architecture Patterns at a Glance
| Pattern | RTO | RPO | Monthly Cost* | Best For |
|---|---|---|---|---|
| Pilot Light | 1-4 hours | Minutes | ~$150-400 | Non-critical workloads, cost-sensitive |
| Warm Standby | 10-30 min | Seconds-Minutes | ~$800-2,000 | Business-critical applications |
| Active-Active | < 1 min | Near-zero | ~$2,000-5,000 | Mission-critical, zero-downtime |
*Costs are estimates for a mid-size web application (2-4 EC2 instances, RDS Multi-AZ, S3).
Prerequisites
- AWS Account with permissions for EC2, RDS, S3, Route 53, CloudFormation, IAM
- AWS CLI v2 configured with appropriate credentials
- Python 3.10+ (for helper scripts — stdlib only, no pip packages)
- Terraform >= 1.5 (if using Terraform templates)
- Two AWS regions selected (primary + DR)
Quick Start
Step 1: Choose Your Pattern
Use the RTO/RPO calculator to determine which pattern fits:
python3 scripts/rto_rpo_calculator.py
Answer the prompts about your application's availability requirements and budget. The tool recommends a pattern and estimates monthly DR cost.
... continues with setup instructions, usage examples, and more.