Configure a Pilot Light disaster recovery setup for a WordPress application hosted in AWS.
- Setup:
- Primary region: Deploy a WordPress application on an EC2 instance with an RDS database.
- Secondary region: Set up a minimal environment (e.g., only RDS and a scaled-down EC2 instance).
- Steps:
- Data Replication: Enable cross-region replication for the RDS database.
- Image Sharing: Create an AMI of the primary EC2 instance and share it with the secondary region.
- Automation: Write a CloudFormation or Terraform script to scale up the secondary environment on demand.
- Testing:
- Trigger failover by stopping the primary instance and scaling up the EC2 Auto Scaling Group in the secondary region.
- Update Route 53 to redirect traffic to the secondary region.
- Outcome:
- Verify that the application is accessible and functional in the secondary region.
- Evaluate RTO and RPO metrics from the test.