Configuring the DNS

If you use AWS Route 53 to manage your domain, it is easy to assign a domain or a subdomain to an ALB:

  1. Navigate to Route 53 | Hosted Zones
  2. Select your domain, like thejavascriptpromise.com
  3. Click on Create record set
  4. Enter Name as lemonmart
  5. Set Alias to yes
  6. Select the lemon-mart-alb from the load balancer list

  1. Click on Create to finish setup
Route 53 - Create record set

Now, your site will be reachable on the subdomain you just defined, for example http://lemonmart.thejavascriptpromise.com.

If don't use Route 53, don't panic. On your domain provider's website, edit the Zone file to create an A record to the ELB's DNS ...

Get Angular 6 for Enterprise-Ready Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.