A lot of DR planning will depend on your specific RTO and RPO that you need to support. We have pretty aggressive DR plans (RTO less than 12 hours, RPO less than one hour), so we need to ensure we’re replicating in real time to a second region, at least from a database perspective.
I can’t give specifics of our plan/documentation, but some food for thought on how we do things - our overall infrastructure is based on autoscaling groups, Postgres databases, memcached, redis and some other EC2 instances that are statically built.
For starters, we have everything deployed via Terraform, so if we need to build to a second region, it’s easily by changing a handful of variables and deploying to another AWS region. This includes VPCs, ASGs, and everything else that needs to be built.
For ASGs/EC2 instances, we use a combination of backups and IaC for recovery. ASGs, we do monthly maintenance on our AMIs to perform security updates or any other configuration changes. When we build that AMI, we build it both in the production region, as well as the DR region. That ensures we can always run from the secondary region without any dependency on the first region. We use packer for this today to build the AMIs in multiple regions.
For static EC2 instances that aren’t part of ASGs, we use N2WS CPM to perform backups/snapshots of those instances daily, and also use the cross-account/cross-region DR functionality to ensure those snapshots are being backed up across accounts/regions, again, to remove the reliance on the production account/region.
For database, we currently run Postgres on EC2, but the same concept could apply for RDS. We run our primary instance in our production region with a few read replicas. We also have a secondary instance in another region with asynchronous replication in place to ensure the database is kept in sync, close to real time.
The other components (redis, memached, etc.) are built via Terraform and are just re-populated when started up. Nothing needs to be persisted in those specific layers for our specific use cases.
We failover manually for all situations - nothing automated at this stage. In the event of a region failure, we’ll spin up our terraform stack to define all the resources, deploy application code use Code Pipeline/Code Deploy, and then cutover DNS records to point to the new stack in the secondary region.