Set up AWS Route53

Route 53 helps us configure domain names to point to the website deployed on AWS, making access more convenient.

In this section, we need to prepare a domain name. The domain name to be used with the Hosted Zone on Route 53 only needs to be validly registered and have DNS management rights. I am using a domain borrowed from a friend, nguyenthanhhuy.id.vn. You can also register a free .id.vn domain from domain service providers like matbao, tenten, etc.

  1. Go to AWS Management Console
  • Find Route 53
  • Select Route 53

Description

  1. In the Route 53 interface, select Started
  • Select Create hosted zones
  • Select Get started

Description

  1. In the Create Hosted Zone interface
  • Enter Domain name as your domain name
  • Scroll to the bottom of the page, select Create hosted zone

Description

  1. After creating the Hosted zone, access the newly created hosted zone
  • In the Record section, copy the values in the Value/Route traffic field

Description

  1. In the domain management interface, paste the 4 Name servers you just copied

Remove the dot at the end of the NS

Description

  1. Go back to the Edit settings section of CloudFront
  • In the Alternate domain name (CNAME) field, enter fcj.nguyenthanhhuy.id.vn

Replace “nguyenthanhhuy.id.vn” with your domain name

  • In the SSL Certificate section
  • Select Request certificate

Description

  • Select Next

Description

  1. Create an SSL Certificate in the Request public certificate section
  • In the Fully qualified domain name field, enter *.nguyenthanhhuy.id.vn
  • Scroll to the bottom of the page, select Request

Description

  1. Go back to the Edit Settings tab of CloudFront Distributions
  • In the Custom SSL Certificate section, select the certificate you just created
  • Scroll to the bottom of the page, select Save changes

Description

  1. Access the created certificate
  • In the Records section, select Create record in Route 53

Description

  • Select Create records

Description

  1. Go back to Route 53 nguyenthanhhuy.id.vn
  • In the Record section, you will see a newly created CNAME
  • Select Create Record

Description

  1. In the Create record interface
  • Enter fcj in the Record name field
  • Enable the Alias option
  • In the Route traffic to section
    • Choose Endpoint select: Alias to CloudFront distribution
    • Choose distribution select: fcj.nguyenthanhhuy.id.vn
  • Select Create record

Description

  1. Check website access
  • In the web browser’s search bar, enter fcj.nguyenthanhhuy.id.vn
  • Enter Nhựt Khang in the textbox
  • Click Submit

Description

The screen displays the text Hello, Nhựt Khang!