mydomain
No ADS
No ADS

Configure custom domain for Amazon S3 static website

  1. Configuring Route 53
  2. HTTPS/SSL?
In the previous article, I showed you how to create a static website hosted on an S3 Bucket.
If your domain registration is being managed at another provider, you will need to migrate its DNS service to Amazon Route 53:
In this article, I will guide you "How to point your domain name to the above static website".

1. Configuring Route 53

First, login to the Amazon Route 53 service:
Access the "Hosted zone".
Select a "Hosted zone" corresponding to the domain name you are interested in.
We will create a subdomain and point it to S3 Static Website. Click the "Create record" button.
Record name
Domain name or subdomain name. Such as:
  • test.yourdomain.com
Note: To point the domain name to an S3 Static Website, the "Record name" must be the same as the Bucket name.
Record type
The value of "Record type" in this case must be:
  • A - Routes traffic to an IPv4 address and some AWS resources
Alias
Yes
Route traffic to
Select value:
  • Alias to S3 website endpoint
Region
Select the geographic region where your S3 Bucket is located.
S3 Endpoint
Note: "S3 Endpoint" is only available for selection if "Record name" is the same as the Bucket name.
Finally, click "Create Record". Normally, DNS changes need about 24 hours to be fully propagated to other DNS Servers, with Amazon 53 you may only need a few minutes to wait to feel the change.

2. HTTPS/SSL?

In the step above we configured Amazon Route 53 to point a custom domain name to an S3 Static Website. Everything seems perfect and you can access the website with your domain name using HTTP protocol.
  • http://test.yourdomain.com
Basically, you can set up HTTPS/SSL for the above custom domain without using CloudFront, but it is quite complicated and is covered in the discussion below:
If you really need a static website with a custom domain name and HTTPS support, you should consider using CloudFront.
No ADS
No ADS