You may have created and hosted a website on AW, and you would like to users to be accessed using a custom URL.
You can host a static website on S3 and use CloudFront or Route53 to point to your site. This post helps you to do the same.
In our example, we will be mapping www.tech-Disqus.in which is bought in GoDaddy to a website hosted on AWS.
Mapping custom domain to the website (Static or dynamic) hosted on AWS
You can map your custom domain to the website in two ways.
Create the DNS records in GoDaddy to map the CloudFront URL. It is the preferred way.
Hosting the static website on S3 and using AWS Route 53 and use the custom name servers in GoDaddy (CloudFront is not required).
In our example, we will be mapping www.tech-Disqus.in which bought in GoDaddy to a website hosted on AWS.
The below steps can use to map your CloudFront URL to the custom domain
Assuming you have already hosted a static website hosted on AWS and serving from CloudFront.
Copy the CloudFront URL
Login to GoDaddy with your credentials
Navigate to your domain
Select the domain (www.tech-Disqus.in, in our example) that you need to point to the website
Navigate to manage DNS
Create a new record with below information
Type: CNAME
Host: www
Points to: your AWS CloudFront URL
TTL: The minimum value should be an hour
Save
Note: Your DNS settings for your new WordPress website have successfully been changed in GoDaddy. Please note that DNS changes can take place immediately or up to 48 hours to propagate.
Updating/using custom nameservers in GoDaddy
Assuming you have already hosted a static website hosted on S3
Navigate to Amazon Route 53
Create a hosted zone
Input domain name, same as your custom domain
Create
Create Record Set
Input name as www
Type: A-IPv4 address
Select Alias as Yes
Select your S3 bucket as Alias Target
Create
Copy the name servers (select the record where type is NS on the same page in central panel)
Copy the name server values from the right board present in amount. The values start with "ns."
For example, ns-462.awsdns-57.com.,ns-1404.awsdns-47.org.
The below are steps to use custom nameservers in GoDaddy.
Login to GoDaddy with your credentials
Navigate to your domain
Select the domain (www.tech-Disqus.in, in our example) that you need to point to the website
Navigate to manage DNS
Navigate to Nameservers section and click on
select custom as value for choosing your new nameserver type
Enter the copied Nameservers
Save
Note: Your DNS settings for your new WordPress website have successfully been changed in GoDaddy. Please note that DNS changes can take place immediately or up to 48 hours to propagate.