In this lab, you learn how to route traffic for your domain, such as example.com, to your Amazon Lightsail resources. You do this by adding DNS records to your hosted zone in Amazon Route 53. Route 53 is the domain name registrar and DNS hosting provider at Amazon Web Services (AWS). This lab assumes that you use Amazon Route 53 as the DNS hosting provider for your domain. This lab is useful if you registered your domain using Route 53, and you want to continue using Route 53 to manage your domain's DNS. Or you might have registered your domain elsewhere, but transferred management of your domain's DNS to Route 53.

Another option is to create and use a Lightsail DNS zone to manage your domain's DNS. This lab does not show you how to create and use a Lightsail DNS zone. If you would like to learn more about that process, see Creating a DNS zone to manage your domain’s DNS records in Amazon Lightsail. This requires adding the name server records of your Lightsail DNS zone to your domain at its current DNS hosting provider, so that management of your domain's DNS is transferred to Lightsail.

By completing the steps in this lab, you will effectively re-route traffic for your domain from one resource to another. We highly recommend that you use an inactive domain that is not currently routing traffic to essential production resources.

Amazon Lightsail is the easiest way to get started on AWS. Lightsail offers virtual servers (instances), storage, databases, content delivery network (CDN) distributions, and networking for a low, predictable price. With Lightsail, you can start small and scale as you grow. 

Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web service. You can use Route 53 to perform three main functions in any combination:

  1. Register domain names
  2. Route internet traffic to your resources, such as your Lightsail instances and CDN distributions
  3. Check the health of your resources

This lab assumes that you have registered your domain using Route 53, or you have transferred management of your domain's DNS to Route 53. If you haven't done that yet, see the following guides in the Route 53 user guide:

AWS Experience: Intermediate

Time to complete: 180 minutes

Cost to complete: This tutorial will cost you less than $2 (assuming all services are running for 2 hours)*

Technologies used:

  • Active AWS Account**
  • Browser: AWS recommends Chrome
  • Amazon Lightsail
  • Amazon Route 53 

*This estimate assumes you follow the recommended configurations throughout the tutorial and terminate all resources within 2 hours.

**Accounts that have been created within the last 24 hours might not yet have access to the resources required for this project.