In this recipe, we will look at how to use custom domain names with S3. Using custom domains with S3 requires that the domain name (including the WWW sub-domain) is the same as that of the bucket name. We can have a bucket for a naked domain (for example, qnatime.com), and another bucket for its WWW sub-domain (for example, www.qnatime.com); the WWW sub-domain forwards the request to the naked domain.
Using custom domains with S3 static websites
Getting ready
You should have a public domain with a HostedZone configured in Route 53. Please refer to the recipes Registering a domain name with Route 53 and Using domains registered with other registrars.
Also, we will not discuss the details related to the creation of an S3 static...