Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Right now when I upload a file to my Amazon s3 buckert the url to the file looks like this:<MY BUCKET NAME>/filename.extension

I would like to use something like this:

How can this be done?

If I need to do this via a CNAME please explain how to do that in the terminal as I don't have cpanel or any other GUI control panel.

share|improve this question
What don't you have a GUI for? AWS or your DNS or your host or what? – Félix Saparelli Jun 10 '12 at 5:05
@Félix Saparelli I meant I don't have a hosting panel GUI. In the past when I had to work with domains (cnames, arecords, etc.) I did it through cPanel. – JakeRow123 Jun 10 '12 at 5:08
up vote 3 down vote accepted

Yes, you can point a CNAME at your S3 bucket Firstly, you need to name the S3 bucket after the hostname you wish to use, e.g. Then add a CNAME record for that hostname pointing at the full S3 hostname, i.e.

share|improve this answer

Just to be friendly to the search engines, I thought I would add an updated 2013 perspective.

  1. It's not entirely fair to say that S3 is a CDN. In actuality, Amazon provides a service called CloudFront, which acts as a true "Content Delivery Network". They have roughly 60 edge servers globally that cache your bucketed S3 content. If you wish to use that service, you can provide several URLs to map into your cached content and they find your content with the extended paths. I.e.

Gross S3 URL:

New sexy URL:

You can use a variety of CNAMES (canonical names) to even further mask it and cache a full static site there (

  1. If you're simply looking to send your traffic to a static hosted site (or content) on S3 without the CloudFront feature, you can do so but Amazon makes it much easier to do it through their Route 53 service.
  2. In S3, you'd need to create a bucket called
  3. Create an alias DNS record in your new Route 53 hosted zone and point to that bucket
  4. Create a BUCKET in S3 to REDIRECT traffic to your bucket. In a way you're mimicking the activities of a true DNS record but you're taking that action within S3.

Good luck!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.