Failing Over
Failing Over
In this section, we run one drill (recovery exercise) for both source servers and check that WordPress works after the drill in the recovery VPC.
- Start only when both source servers show Ready for recovery = Ready (section 6) and you have finished section 7 for both servers.
-
Open AWS Elastic Disaster Recovery → Source servers
- Both servers show Ready for recovery = Ready and Data replication status = Healthy.
- Tick both source servers, wordpress-web.onpremsim.env and wordpress-db.onpremsim.env.
- Select Initiate recovery job → Initiate recovery drill.

-
On the Initiate recovery drill page
- For Points in time, select Use most recent data.
- Select Initiate drill.

-
On the Recovery job history page
- In the left menu, select Recovery job history.
- Select the job ID of this drill (the job has type Launch, initiator Start drill, and status Started).

-
On the job’s Job log tab
- Open the job’s Job log. Select refresh from time to time.
- During conversion, DRS runs two temporary instances named AWS Elastic Disaster Recovery Conversion Server in DRS Staging. DRS terminates them automatically.

-
After about 10–20 minutes, the job changes to Completed and both servers have launch status Launched

-
Open EC2 → Instances
- You see two new instances, wordpress-web.onpremsim.env and wordpress-db.onpremsim.env, alongside the two source servers.
- Each drill instance is t3.small, runs in the Target Private subnet with security group TargetSecurityGroup, and has private IP 10.0.1.10 (web) or 10.0.1.20 (db).

-
Open AWS Elastic Disaster Recovery → Recovery instances
- The list contains two recovery instances, one for each source server, along with their EC2 instance ID.
- Copy the EC2 instance ID of the recovery instance whose source server is wordpress-web.onpremsim.env. Use this ID because the source instance and drill instance have the same name (Name). The ID has the form
i-0948483f331d3aee0, different from WebServerInstanceId in the stack outputs.

-
In EC2 → Instances
- Paste the ID from item 7 into the search box above the list and press Enter. Only one instance remains: the web drill instance in Target Private.
- Tick the checkbox of that instance.
- Select Connect.
- If you want to use AWS CloudShell, run the following command instead of items 8–9, replacing
<drill-instance-id> with the ID from item 7. Then continue with item 10.
aws ssm start-session --target <drill-instance-id> --region us-west-2

-
On the Connect to instance page
- Select the Session Manager tab. If the tab says that the instance is not ready, wait 2–5 minutes for the drill instance to register with Systems Manager, then reload the page.
- Select Connect (the orange button). A terminal opens in a new browser tab with a
sh-5.2$ prompt.

-
In the Session Manager window of the web drill instance
bash
cd ~
hostname -I
getent hosts wordpress-db.onpremsim.env
curl -s http://wordpress-web.onpremsim.env/wp-admin/install.php | grep -o '<title>.*</title>'
10.0.1.10
10.0.1.20 wordpress-db.onpremsim.env
<title>WordPress › Installation</title>
- The WordPress title means that the web server after the drill reached the database after the drill in the recovery VPC. The source VPC is not connected to the recovery VPC, so this result can only come from the drill instances.
- Select Terminate (top right of the terminal page), then select Terminate in the dialog.

Replication continues during the drill: the source servers remain
Ready /
Healthy. The drill instances incur costs until you terminate them in section 9. Real recovery and failback are outside the scope of this workshop; see the
DRS quick start guide.