fybmga
Last Updated: February 25, 2016
·
4.143K
· blitline-dev
Box icon 70x70

How to turn your S3 bucket into a CDN

Amazon provides SIMPLE and CHEAP CDN functionality to all portions of the planet.


  • Navigate to your AWS console

https://console.aws.amazon.com/console/home

  • Click on the CloudFront CDN Service

CloudFront

  • From this page click "Create Distribution"

Create_Distribution

  • Select "Web" (The other is for streaming Flash content) and click "Continue"

Web

  • Click the "Origin Domain Name" textbox and you will see all your available buckets

Buckets

  • Enter a description in the "Origin ID" box, like "My Super Awesome CDN"

Buckets

  • Click the "Create Distribution" button at the bottom

Create

  • It will take a while for the CDN to populate. Wait for the "In Progress" to complete.

Wait

  • Now your bucket will now be served via CDN is you use the proper URL

-CDNUrl

  • Optional: If you want your own URL for serving image (like * cdn.mysite.com * )

-OptionCNAME

Considering how inexpensive S3 is for CDN, it's hard to imagine many reasons why you wouldn't just CDN your own buckets and save the expense of many of the other "CDN" providers.

If you have any questions about turning your bucket into a CDN, you can write us at support@blitline.com and we'd be happy to help you out!

Say Thanks
Respond

2 Responses
Add your response

11949
Big pimpin

Alternatives:

Cloudflare and/or Rackspace Cloud File container

Cloudflare has a free option, and Rackspace is something like $0.12 USD per Gigabyte of transfer + storage (also cheap). Also Cloudflare can be used on top of AWS or Rackspace.

Many people find AWS to be intimidating; so these would be an easier step in the right direction.

over 1 year ago ·
11962
Box icon 70x70

Totally agree! AWS is a bit daunting (thus the walkthrough), and any service who makes that easier is worth checking out!

over 1 year ago ·
Awesome Job

E7334122 1780 11e8 9aaf caa9487f1cb0
DevOps Engineer
·
Negotiable, Sydney or Canberra pref
·
Full Time