DEV Community

Abdullateef OGUNDIPE
Abdullateef OGUNDIPE

Posted on

Day 5: Configuring Route 53 to Map Your Domain to the CloudFront Distribution

Recap of Day 4

Yesterday, we set up CloudFront to serve as the content delivery network for the LimitlessAO Power Solutions website, ensuring fast global access. Additionally, we secured the website with an SSL certificate from AWS Certificate Manager, enabling HTTPS for secure communication. Today, we’ll finalize the website’s accessibility by using Route 53 to map the website's custom domain (www.limitlessao.com) to the CloudFront distribution.

Why Use Route 53?

Route 53 is Amazon's DNS web service, designed for high availability and scalability. It allows you to route internet traffic to AWS resources or other destinations effectively. By configuring Route 53, visitors can access your website using a user-friendly domain name rather than a long CloudFront URL.

Step-by-Step Implementation

Step 1: Register a Domain or Use an Existing One

  • If you don’t have a domain, you can register one via Route 53
  • To register a domain with Route 53, navigate to the Route 53 Console, click Register Domain, and follow the steps.
  • If you already own a domain, confirm that it is correctly set up for DNS management. For more information: Registering a Domain with Route 53.

Registration of Domain

Step 2: Create a Hosted Zone in Route 53

  • In the Route 53 Console, navigate to Hosted Zones.
  • Click Create Hosted Zone and provide the following:
  • Domain Name: Enter your domain name (e.g., limitlessao.com).
  • Type: Select Public Hosted Zone.
  • Note the Name Server (NS) Records provided by Route 53. These will need to be updated with your domain registrar if you’re using a third-party domain.

Hosted Zone Creation

Step 3: Create Alias Records to Route Traffic

  • In your Route 53 Hosted Zone, create two records:
  • A Record for the Root Domain:
  • Record Name: Leave blank or use @.
  • Alias: Yes
  • Alias Target: Select your CloudFront distribution.
  • CNAME Record for the Subdomain (www):
  • Record Name: www.
  • Alias: Yes
  • Alias Target: Select your CloudFront distribution.
  • Save the records.
  • For more details: Routing Traffic to a CloudFront Distribution.

Record Creation

Step 4: Test the Domain

  • After the DNS changes propagate, open your browser and enter your domain name (www.limitlessao.com).
  • The website should now load via CloudFront with HTTPS enabled.
  • If there are issues, check the status of your DNS records in Route 53 and the CloudFront distribution.

"A user-friendly domain is the doorway to your digital presence—make it seamless and secure."

What’s Next?
With the domain now mapped to the CloudFront distribution, the website migration process is almost complete. Tomorrow, we’ll focus on monitoring and troubleshooting the website using AWS CloudWatch to ensure optimal performance and reliability.

Stay tuned!
LimitlessAO

Top comments (0)