I Registered a domain through Route 53 and routed traffic from it to Cloudfront distribution
Introduction
Hemanth of Alliance Department here. In this blog, i tried registering a domain through Route 53 and routing traffic from it to Cloudfront distribution.
For a deploying a simple application using Cloudfront refer to the below blog. As this would be required going forward in this blog, as a cloudfront distribution is required.
Route53
AWS Route 53 service empowers you to carry out the following three tasks such as domain registration, DNS routing, and health checking. Route 53 is used to redirect internet traffic to your resources, create a domain name for your website or web application, and verify the functionality and accessibility of your resources. User queries are routed through Route 53, a highly available and scalable Domain Name System (DNS) web service, to internet apps that are running on AWS or locally.
Cloudfront
AWS CloudFront is a content delivery network (CDN) service that aids in the speedy and dependable distribution of static and dynamic information with high performance, security, and developer friendliness. It distributes your content over a global network of edge sites, or data centers that are close to your users. Using serverless compute features, you can also alter the code that is executed at the AWS CDN edge.
Demo
Go to route 53 and click on register domain
Enter a name and click on search i.e to check the availability of domain. The click on select on domain which interests you
Then click proceed to checkout, next fill in the details and you'll be able to purchase the domain
You'll be getting the following email to verify your email address
After email verification, your domain registration will be successful
Automatically along with your domain an hosted zone will be created
Go to AWS certificate manager, click on request certificate and then next (be sure to be in N.virginia region)
Enter the above created domain name, keep other setting default and click on request
click on the created certificate, in the Domains section click on create records in Route53 and next step select the above created hosted zone
A cname record would be created in your hosted zone
click on the earlier created cloudfront, setting section click on edit
Keep all the other settings as default, enter above created domain name in cname and select the above created certificate (Above that is region we created certificates
in N. Viriginia)
Click on save changes
Going back to hosted zone of Route 53 and click on route 53
Keep others as default, toggle the alias, in route traffic select cloudfront distribution
In the distribution select the above cloudfront distribution and click on create records
Type A record will be created in the hosted Zone
Now if you type the domain you should be able to see
Conclusion
Hope with this you get an idea of how to register a domain through Route 53 and routing traffic from it to Cloudfront distribution. Thank you for seeing the blog till the end.