Step 4: Post Launch Configuration

Now the instance is running we need to associate the instance with the load balancer. You do this by adding a target to the load balancer target group we created earlier.

In the EC2 service dashboard, select the Target Groups link on the left.

Select the target group you created earlier, select the Targets tab at the bottom and then select Edit.

Select the EC2 instance you launched from the marketplace and click Add to registered.

Finally, we need to create a Route 53 record that aliases to the load balancer.

Navigate to the hosted zone you want to use in Route 53 and create a record set.

Type the subdomain you want to use in the Name field.

Make sure the Type selected is A - IPv4 address and Alias is set to Yes.

In the Alias Target field, start typing the name of the load balancer and select it when it appears.

You should now be able to access the dashboard at the domain you configure in the Route 53 record (the DNS entry can sometimes take a little bit to propagate if it doesn't work immediately).