How To Create A Branded URL To Your Amazon s3 Bucket


Amazon s3 is a cloud storage service. i personally use it to store files especially images used on my blog post.
Amazon simple storage service(s3)

By default, the URL to amazon bucket is usually https://REGION.amazonaws.com/BUCKETNAME/
here is a sample url to an image in my tech4sky bucket.

https://s3-us-west-2.amazonaws.com/tech4sky/whatthefont.png

Also you can access your bucket via http://BUCKETNAME.s3.amazonaws.com as in

https://tech4sky.s3.amazonaws.com/whatthefont.png

How to re-write Amazon s3 url to branded domain

Now am going to show us how to rewrite the default Amazon s3 file url to your branded custom subdomain name.
For example, the image above can also be accessed via http://media.w3guy.com/whatthefont.png

  1. Create a cname record pointing to s3.amazonaws.com
  2. Create a bucket with same name as the cname. for example, if the cname record is media.yourdomain.com, create a bucket with name media.yourdomain.com
  3. Now you can access files in your bucket using your branded sub domain.

About Agbonghama Collins

Agbonghama Collins is a webdeveloper and an internet geek. I love writing and sharing the little idea & information i know. Hope you enjoyed my Article.

Follow me on Twitter, add him on Facebook or on Google+