I 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 images.wrichards.com.s3.amazonaws.com to serve all my images. I don’t really want to type out the extra s3.amazonaws.com bit everytime I link to an image.
There is a quick and easy solution to change your domain with CNAME:
images.wrichards.com CNAME images.wrichards.com.s3.amazonaws.com
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 images.wrichards.com.The bucket name must match and be lowercase for this to work properly.
2 Responses to Customize your Amazon S3 Url
Aaron Schmidt
March 24th, 2009 at 1:07 pm
Hi,
Will the following work?
images.example.com CNAME
example.s3.amazonaws.com
I.e. does the bucket name have to match the full domain name?
Bill
March 24th, 2009 at 7:10 pm
Hi Aaron,
Unfortunately, the bucket name has to match the full domain. So in your case:
images.example.com CNAME
images.example.com.s3.amazonaws.com