

# Preparing Windows instances that use EC2Launch v1

If your Windows source instance uses EC2Launch v1, complete the procedure in this topic before the first Amazon Elastic Block Store (Amazon EBS) Multi-AZ failover. Otherwise, the standby instance cannot reach the Instance Metadata Service (IMDS), and replication does not continue.

EC2Launch v1 sets the network routes to IMDS only at the first boot, for the subnet that you launched the instance in. The standby instance boots from the same root volume, but it is in a different subnet, so those routes do not work there. As a result, the following problems occur on the standby instance:
+ The SSM Agent does not register with AWS Systems Manager.
+ The AWS Replication Agent cannot connect to AWS Elastic Disaster Recovery, and replication does not continue.

To prevent these problems, use one of the following options:
+ **Upgrade to EC2Launch v2 (recommended)** – EC2Launch v2 sets these routes on every boot, so instances that use it do not need the procedure in this topic. For more information about launch agents, see [Windows launch agents on Amazon EC2 Windows instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-launch-agents.html) in the *Amazon EC2 User Guide*.
+ **Schedule EC2Launch v1 to run on every boot** – For instances that stay on EC2Launch v1, use the procedure in this topic. EC2Launch v1 then sets the routes on every boot for the subnet that the instance is in. It also runs the other initialization tasks in `LaunchConfig.json` on every boot.