Introduction

Overview

AWS Elastic Disaster Recovery (AWS DRS) helps minimize downtime and data loss by quickly and reliably recovering applications on-premises and in the cloud, using reasonably priced storage, minimal computing resources, and point in time recovery.

AWS Elastic Disaster Recovery Workshop

This lab simulates an on-premises environment that allows customers to replicate disaster recovery to AWS.

The simulation environment is supported by Amazon EC2 instances and configured in a way suitable for many customer environments. It includes:

  • A source VPC with a public subnet, a private subnet, and a NAT gateway (the simulated data center)
  • A private DNS zone onpremsim.env (Amazon Route 53)
  • Two pre-installed Amazon Linux 2023 servers: a WordPress web server (Apache/PHP) and a MariaDB database server
  • A separate recovery VPC with two subnets, DRS Staging and Target Private
  • Access to the servers through AWS Systems Manager Session Manager (no bastion host, no inbound ports)

The image below is a basic network diagram for the AWS Elastic Disaster Recovery service (commonly called DRS). The simulation environment matches the service requirements.

AWS Elastic Disaster Recovery Workshop

Lab architecture

The lab uses two VPC in Region us-west-2. Each VPC has one role:

Source VPC Recovery VPC
Name onpremsim-source-vpc drs-recovery-vpc
Role Simulated on-premises data center AWS side, where DRS recovers the servers
CIDR 10.0.0.0/16 10.0.0.0/16 (overlapping the source VPC intentionally)

Source VPC: simulated data center

  • The Source Private subnet (10.0.1.0/24) contains the two servers to protect:
    • Web server wordpress-web.onpremsim.env: 10.0.1.10
    • Database server wordpress-db.onpremsim.env: 10.0.1.20
  • Both servers access the internet through a NAT gateway.

Recovery VPC: AWS side

  • DRS Staging subnet (10.0.100.0/24): DRS places replication server here to receive continuous data from the source servers.
  • Target Private subnet (10.0.1.0/24): DRS launches drill instance (recovered servers) here when you run a drill or recovery.

Why it is designed this way

  • The two VPC are not connected: replication data travels over the internet, like a data center without VPN or Direct Connect.
  • The two VPC have the same CIDR: Target Private uses the same 10.0.1.0/24 range as Source Private, so the drill instance keeps the original private IP, and the DNS names onpremsim.env still point correctly. The web server can still find the database after failover without changing its configuration.
The lab uses Session Manager only to open a shell on the simulated on-premises servers. It replaces the VPN or jump box used in a real data center and does not participate in DRS replication.

What you will do

  1. Section 2: deploy a CloudFormation stack that creates both VPC and the two source servers (about 5–15 minutes).
  2. Section 3: open a Session Manager shell on each source server and check that WordPress works.
  3. Section 4: initialize DRS in us-west-2 with the default replication settings (about 5 minutes).
  4. Section 5: create an IAM role and obtain temporary credentials for the agent installer.
  5. Section 6: install the AWS Replication Agent on both servers and wait for the initial sync (about 15–60 minutes).
  6. Section 7: configure launch settings for both servers (instance type, subnet, security group, IP, and instance profile).
  7. Section 8: run a recovery drill and check that WordPress works after the drill in the recovery VPC (about 10–20 minutes).
  8. Section 9: delete all resources in the correct order on the same day.

Basic knowledge

This is a lab for Solution Architects, SysOps, ServerOps, InfraOps, and other professionals.

To get the most out of this lab, you must be familiar with the following:

  • Using the AWS Management Console and AWS CloudShell
  • Basic Linux command line (bash)
Sign in with an IAM user or role that has administrator permissions (not the root user), and keep the Region set to US West (Oregon) us-west-2 throughout the lab.