Brad Lucas

Programming, Clojure and other interests
August 10, 2017

Cname To S3 Bucket

The url you get for a S3 hosted web site is a bit long. You might want to set up a subdomain from your domain that points to your S3 hosted site. The trick to do this involves how you name your bucket.

Here is an example.

Suppose your domain is and you want to setup a subdomain which points to a S3 hosted website.

To make this work the key is to create a bucket called This will give you a endpoint of

Now, when you setup your CNAME record have your name point to

Tags: aws s3