Configure launch settings

Configure launch settings

In this section, we configure how DRS launches drill instances for each source server, directly in the DRS console: keep the private IP, instance type t3.small, subnet Target Private, security group TargetSecurityGroup, and instance profile drs-workshop-recovery-instance-profile created by the stack.

  • You can do this section while the initial sync in section 6 is still running.
  1. Open AWS Elastic Disaster Recovery → Source servers

    • The list contains wordpress-web.onpremsim.env and wordpress-db.onpremsim.env.
    • Select the hostname wordpress-web.onpremsim.env.

    AWS Elastic Disaster Recovery Workshop

  2. On the server details page, Launch settings tab

    • Select the Launch settings tab. It has two sections, DRS launch settings and EC2 launch template.
    • In DRS launch settings, select Edit.

    AWS Elastic Disaster Recovery Workshop

  3. On the Edit DRS launch settings page

    • For Instance type right-sizing, select Inactive, so DRS uses the instance type in the EC2 launch template.
    • Keep Start instance upon launching set to Yes.
    • For Copy private IP, select Yes. The console displays the source IP in parentheses (10.0.1.10 for the web server). The drill instance then receives the same IP in Target Private, so the DNS names in onpremsim.env continue to work.
    • Select Save settings.

    AWS Elastic Disaster Recovery Workshop AWS Elastic Disaster Recovery Workshop

  4. On the Launch settings tab after saving

    • In EC2 launch template, select Edit.

    AWS Elastic Disaster Recovery Workshop

  5. On the Edit EC2 launch template page

    • For Subnet, select Target Private. Choose the subnet in VPC drs-recovery-vpc, not Source Private.
    • For Security groups, select TargetSecurityGroup (the only selected security group).
    • For Instance type, select t3.small.
    • Expand Advanced settings. For IAM instance profile, select drs-workshop-recovery-instance-profile. Session Manager needs this instance profile to connect to the drill instance in section 8.
    • Select Update template.

    AWS Elastic Disaster Recovery Workshop AWS Elastic Disaster Recovery Workshop

  6. On the Launch settings tab after saving the EC2 launch template

    AWS Elastic Disaster Recovery Workshop

Changes saved in the DRS console automatically become the default version of the EC2 launch template. DRS also creates a new version when you change Copy private IP. If you edit the launch template in the EC2 console, you must additionally select Actions → Set default version, because DRS uses only the default version.
  1. Repeat for wordpress-db.onpremsim.env

    • Repeat items 1–6 for the source server wordpress-db.onpremsim.env.

    AWS Elastic Disaster Recovery Workshop

  2. (Optional check) Open EC2 → Launch templates

    • Each server has a template named created-and-used-by-elastic-disaster-recovery-service-s-....
    • For each template, Default version is the same as Latest version.

    AWS Elastic Disaster Recovery Workshop