Buying a domain name is like putting a stake in the ground. I feel like some sort of Lewis and Clark, or maybe even Neil Armstrong — except instead of an unknown land or galaxy far far away it's a DNS server somewhere in the middle of Ohio.
In this article I will show you how to purchase your domain name from GoDaddy and use it for your next project on Amazon Web Services, whether or not you actually ever get around to building it is up to you!
This article assumes that you have a website already setup with AWS CloudFront. We will walk through step by step how to add a custom GoDaddy domain and SSL certificate to your CloudFront hosted site.
Head over to godaddy.com and enter a search term for the domain you are interested in, then choose one that looks good! I chose ketl.club for my project, and got away with it for just $0.99 for the first year — I'll let Amazon pay $19.99 for the second year after they acquire me!
GoDaddy will give you some additional options about adding security features or getting help starting your website; choose what's best for you then enter your payment information and finish checking out.
If you have already deployed your static site via CloudFront and want a quick and easy way to get started you can setup a forwarding rule. Head over to manage DNS in GoDaddy and scroll down to the forwarding section and put in your CloudFront URL.
After a few minutes everyone who navigates to ketl.club will be redirected to my CloudFront distribution at https://dn34r0ksrielk.cloudfront.net. If you're satisfied, then you're done! If you would like to setup your domain name without having to deal with forwarding then read on; we are going to cover this next. If you do plan on moving forward you can go ahead and delete the forwarding rule we just created.
There is a great AWS document on adding a custom domain managed by GoDaddy which I highly recommend following. I'll summarize the important steps below.