Alias a Domain / Sub Domain Name to your S3 Bucket


Jump Start our Journey to the Kloud. Amazon clearly provides simple Storage and cheap bandwidth for their S3 services, not mentioning their other features and scalability they offer. There are few requirements before this Journey :

  1. First of all, obviously, you need your own domain name and your own Amazon S3 account
  2. Second, You need a tool to create/manage Amazon S3 buckets, so you might need to install an add- on / 3rd party software on your machine.
    • Bucket Explorer, which is a full-featured and easy-to-use client that runs on Windows and Linux; (a Mac version is in private beta and should be available Oct 2007). A free, less-featured alternative is the S3 Organizer add-on for the Mozilla Firefox web browser.
    • Install your application or and either:
      • Open Bucket Explorer -or-
      • Open Firefox and go to Tools menu -> S3 organizer, and click the Manage Accounts button
    • Enter your AmazonAWS Access Key and Secret Key
      • These are available by going to, mousing-over the “Your Web Services Account” in the upper right-hand corner, and selecting “AWS Access Identifiers”

Done ? Great Job! Good news is You have completed the prerequisite. So what’s next ?

  1. Identify the EXACT domain name you wish to forward to Amazon S3. S3 is not a web server, so I would not recommend forwarding your entire domain there, but I would prefer a sub-domain. Let’s say the sub domain is:
  2. Create a new “S3 bucket”  by clicking the “create folder/bucket” icon. Name the bucket exactly what your sub-domain name is.
    • Example bucket name:
    • Note: you MUST use a unique bucket name; you won’t be able to create bucket if the name is already being used by someone else.
  3. Now the exciting part: modifying your DNS server settings. The procedures on how to do this vary by host and software system, below are the general steps:
    • Logon to your web host control panel and select “Manage DNS Server Settings” or similar
    • Create a new CNAME entry for your domain. For my example of, the entry was:
      • Name: S3
      • Type: CNAME
      • Value: ( Value might be vary – please refer to endpoint of your bucket.
  4. Now the boring part: IDLE – waiting. It took about 2 hours for my subdomain to be recognized by AWS.
  5. Check the subdomain name in your browser. You should now be able to access your files through any of 3 urls:
  6. You need to set permissions on your S3 bucket using your favorite bucket management tool. Recommended settings : “full control by owner, read access for everyone”. Yes! This will prevent unwanted people from being able to modify your bucket.
  7. If you don’t want Google (or Google Images) to index the files in your subdomain, create a file named robots.txt containing the following and copy it into your bucket:

User-agent: *
Disallow: /

“The answers you seek shall be yours, once I claim what is mine.” Please leave a comment and notify me if I miss something.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.