Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Integrating Cloud Front with existing S3 Buckets

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 280
    Comment on it

    Few days ago I was facing an issue that the assets served from the S3 buckets are not as fast as I wanted them to be and then I heard about a solution from AWS that is Cloud Front.

    So I am writing this blog so that you get to know that how easy is to integrate cloud front in your website.
    Cloud front is a service provided by the AWS that provides a simple and cost effective way to improve the performance and reliability of your website.

    How does cloud front works :
    As you save your original versions of your files or assets on one or multiple location on servers. and when you create a cloud front distribution it creates references to the original content from different data centers of amazons which are called edge locations. So when a user requests a content you are serving the user gets the response from the nearest edge location in the best possible performance with reduced time delay.

    Integrating Cloud front :

    Integrating cloud front is so simple. You just need to follow these steps:

    1. Go to amazon web console and select the service CloudFront.
    2. Click create distribution.
    3. Click on get started under web in select delivery method.
    4. On the next page select the bucket for which you want to create distribution in ORIGIN DOMAIN NAME.
    5. Now leave all the fields as it is and click Create Distribution at the bottom of the page.
    6. Now a new screen appears where status tab shows In Progress and after Amazon cloud front creates distribution distribution it changes to deployed.
    7. Amazon provides a domain for the content in domain name field something like this. "d235fjidgdkajd.cloudfront.net".
    8. Now for serving your content from cloud front you just need to do is that replace your existing assets url that were directly being served from the s3 to the new domain name associated. example if the your current asset url is something like "http:://some-domain-url.amazonaws.com/asset-file-name" then you need to replace it with new domain as "http://d235fjidgdkajd.cloudfront.net/asset-file-name". It means you need to replace only domain name of the address.
    9. So now your assets are ready for being served from aws cloud front.

    Thanks for reading my blog. I hope it is helpful for you.

    Refrences: http://aws.amazon.com/cloudfront/

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: