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 https://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.
Don’t miss out!
Subscribe to My Newsletter
Invalid email address