Mark Needham

Thoughts on Software Development

Wiring up an Amazon S3 bucket to a CNAME entry – The specified bucket does not exist

with 2 comments

Jason and I were setting up an internal static website using an S3 bucket a couple of days ago and wanted to point a more friendly domain name at it.

We initially called our bucket ‘static-site’ and then created a CNAME entry using zerigo to point our sub domain at the bucket.

The mapping was something like this: ->

When we tried to access the site through we got the following error:

<Message>The specified bucket does not exist</Message>

A bit of googling led us to this thread which suggested that we needed to ensure that our bucket was named after the sub domain that we wanted to serve the site from.

In this case we needed to rename our bucket to ‘” and then our CNAME entry to: ->

And then everything was happy.

Be Sociable, Share!

Written by Mark Needham

March 21st, 2013 at 10:39 pm

  • Thanks Mark! This post was a life saver, wishing you well 🙂

  • healyje

    Thanks here as well – definitely the description of it as a lifesaver fits. Why they don’t call that out in the website property is beyond me…