Tuesday, March 7, 2017

Hosting Website using Domain Outside AWS

It isn't difficult hosting a website on AWS and using your own domain. Here are the steps to accomplish this:


  1. Login to your AWS console and go to Route 53 (managed DNS).
  2. Create a Hosted Zone
    • Domain: example.com (of course, use your own domain)
    • Comment: you very descriptive words to about the domain :)
    • Select Public Hosted Zone
  3. Select the record NS type and take note of the name servers listed.
  4. Go to your domain registrar and point it to the name servers provided by AWS Route 53
  5. Click Create Record Set
  6. You may leave the Name blank as root domain, select record type A - IPv4 address
  7. Set Alias to No and put leave the TTL to 300 seconds
  8. Set the Value to the Elastic IP (EIP) of the EC2
  9. Set the Routing Policy to Simple and click Save Record Set
  10. Redo step 5 to create different type (e.g.: A, CNAME, MX, etc.)
Not included in this setup is the configuration of web server (IIS, Apache, etc.) and associating EIP on EC2