Hi everyone! With me again and again to share some experience, though or opinion about technology related with software engineering field. On previous story, we already learn about deploying application to Amazon EC2. The details can be found in this story: https://medium.com/@bismobaruno/b33d458918fd
Then, how about if we want to change the AWS domain with our domain? In this part, we will learn how to configure our domain to our Amazon EC2 instance with Amazon Route 53
Assume we already have instance that can be accessed by public. So we just focus on the configuring domain area. Go to this console link https://aws.amazon.com/console/ for find the Amazon Route 53 service.
After choose the service, we will redirected to Amazon Route 53 page, because we already have the domain, choose the DNS management and click Get started now button, next step, click Create Hosted Zone button for hosted the zone.
Because we don’t have any record, it still empty on the list. Click Create Hosted Zone button (again) and fill the form based on your domain. After everything is done, click Create button.
After successfully created, we will redirected to Record set list page with the domain information based on our input on previous step.
Change your name servers domain (I’m using GoDaddy) with the name servers from Amazon:
Create www record by clicking Create Record Set button on Record Set List page. The value of the record is Public IP from our EC2 instance. Just copy the IP and put on the form.
Last step, adding more record by clicking Create Record Set button. Fill the form with Alias value is yes, Alias Target is the domain name. Click Create button to proceed.
Wait for the moment, maybe can be took until 48 hours or just a few minutes, after configuration has been done by system, we can access our instance using domain name.
Voila, it’s works! Now you can access the App by our domain!
Hope you enjoy it, I’m happy if this article useful for you! Happy Coding!