Skip to content

Deekshitha-Pasagada/AWS-Disaster-Recovery-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Disaster Recovery Framework

Automated disaster recovery framework for AWS cloud environments implements cross-region S3 replication, RDS Multi-AZ failover, automated failover scripts, and RTO/RPO benchmarking with Terraform infrastructure provisioning.

Overview

This framework addresses the critical challenge of ensuring business continuity when primary AWS infrastructure fails. It automates the detection, failover, and validation process to minimize recovery time and data loss across regions.

Features

  • Cross-Region S3 Replication - Automated bucket replication with 15-minute SLA and object-level validation
  • RDS Multi-AZ Failover - Automated failover with RTO benchmarking and read replica promotion
  • Health Monitoring - Continuous health checks across RDS, S3, and EC2 resources with failure detection
  • DR Orchestration - End-to-end DR test workflow with structured RTO/RPO benchmark reports
  • Terraform IaC - Full infrastructure provisioning for primary and DR environments across two regions
  • Recovery Validation - Automated post-failover validation to confirm data integrity and service availability

Tech Stack

Layer Technology
Cloud AWS (S3, RDS, EC2, IAM)
Infrastructure Terraform
Automation Python, boto3
Testing PyTest, moto
Config YAML

Recovery Objectives

Metric Target
RTO (Recovery Time Objective) ≤ 300 seconds
RPO (Recovery Point Objective) ≤ 15 minutes
Replication Lag ≤ 15 minutes
Backup Retention 30 days

Setup

# Install dependencies
pip install -r requirements.txt

# Configure AWS credentials
aws configure

# Provision infrastructure
cd terraform
terraform init
terraform plan
terraform apply

# Run DR test
cd scripts
python run_dr_test.py

Run Tests

pytest tests/ -v

Architecture

┌──────────────────────────────────────────────────┐
│              DR Orchestrator                      │
│  Health Check → Failover → Validate → Benchmark  │
├───────────────────────┬──────────────────────────┤
│   PRIMARY (us-east-1) │    DR (us-west-2)         │
│   ┌───────────────┐   │   ┌───────────────────┐  │
│   │ RDS Primary   │──▶│   │ RDS Read Replica  │  │
│   │ (Multi-AZ)    │   │   │ (Promotion Ready) │  │
│   └───────────────┘   │   └───────────────────┘  │
│   ┌───────────────┐   │   ┌───────────────────┐  │
│   │ S3 Primary    │──▶│   │ S3 DR Replica     │  │
│   │ (Versioned)   │   │   │ (Cross-Region)    │  │
│   └───────────────┘   │   └───────────────────┘  │
└───────────────────────┴──────────────────────────┘

About

Automated AWS disaster recovery framework with cross-region S3 replication, RDS Multi-AZ failover, automated Python failover scripts, and Terraform IaC benchmarks RTO/RPO across primary and DR regions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors