Customize your Amazon S3 Url

Amazon s3I see a lot of sites still using the long default Amazon S3 url so I thought this might be helpful to someone. Lets say I setup a bucket for images on this domain at to serve all my images. I don’t really want to type out the extra bit everytime I link to an image. 😛 There is a quick and easy solution to change your domain with CNAME: CNAME

Just add a CNAME record with that information and you should be good to go (obviously change my domain to yours). You can add your CNAME in your DNS entry More Info here. I can now access my bucket via the custom domain bucket name must match and be lowercase for this to work properly.

, , ,

  • Aaron Schmidt


    Will the following work? CNAME

    I.e. does the bucket name have to match the full domain name?

  • Bill

    Hi Aaron,

    Unfortunately, the bucket name has to match the full domain. So in your case: CNAME

  • Khal


    I tried doing this. Took a few attempts .. but got it working.. both this post and this post

    were never clear on things.. let me give it a shot for people who get stuck..

    You want your url like




    1) Create your subdomain on your domain Cpanel folder.

    For this example, I own and the subdomain I created is

    2) Open Cloud Explorer (free amazon s3 kit) and create your bucket.. this is the important part..

    your bucket name must be your entire subdomain name

    So create
    “” as a bucket and not “batman”

    NOW you can follow the rest of these tutorials

    3) Your name should be a new CNAME entry for your domain. For my example of, the entry was:

    * Name: batman
    * Type: CNAME
    * Value:
    * (If you are an European users, use instead)

    Thats it!


  • Benjamin Sullivan

    I followed Khal’s instructions and it worked fine. However I needed to create a bucket policy before the items in the bucket could be accessed publicly. For the CNAME, I pointed it to just like Khal said. I DID NOT NEED TO point it to