android developer singapore,ruby on rails developer singapore,web development company singapore,web designer singapore,website developer singapore,app development singapore,singapore website design,mobile app developer singapore,graphic designer in singapore,singapore web design services,singapore web design,mobile application development singapore,developers in singapore,singapore web development,design agency singapore,singapore mobile application developer,singapore app developer,mobile apps development singapore,website development singapore,website design singapore,singapore mobile app developer,web design company singapore,design firms in singapore,mobile developer singapore,mobile app development singapore,developer in singapore,mobile application developer singapore,mobile apps singapore,website designer singapore,mobile game developer singapore,web development singapore,app developer singapore,web design services singapore,ios app development singapore,web design singapore,ios developer singapore,web application singapore

How to turn your S3 bucket into a CDN

How to turn your S3 bucket into a CDN

Having Amazon serve your image through their awesome CDN is dead simple. It’s also about $0.12/GB per month… cheap.

Log into your Amazon account via the Amazon Console . Click on “CloudFront”

image

Once you have clicked on CloudFront, fint the “Create Distribution” link, which will either be at the top, or if you are a first time user, might be in the middle of the console page as well. Either way, click “Create Distribution”.

image

You can use the default “Download” option on this page, and simple click the “Continue” button.

image

On the Settings page, click in the Origin Domain Name box, and you will get a dropdown of all your S3 buckets. Choose your bucket you want to be served from the CDN. Leave the other settings alone and click the “Create Distribution” button.

imageimage

Viola! You now have a CDN that uses the images from the S3 bucket you chose on the settings page. The CDN will have some unfriendly url likeuweoqruqyr.cloudfront.com (which will be the new base url for your images, like https://uweoqruqyr.cloudfront.com/mykey/foo.jpg)

You can go to your DNS provider and just add a CNAME that can map this to some friendly url like “cdn.myawesomeapp.com”)

image

%d bloggers like this:
WordPress