Support

Find answers, guides, and tutorials to supercharge your content delivery.

AWS S3 CDN Integration

Updated on October 4, 2018

This article will guide you trough a AWS S3 CDN integration. The majority of the configuration will be done in the AWS console. The S3 bucket, which we create later, will be the origin server.

  1. Log in to the AWS Console and navigate to S3.

  2. Create an S3 bucket (define the Bucket Name and the Region).

  3. Upload content to your S3 bucket.

  4. Go to "Enable website hosting" and define the Index Document (does not need to exist, e.g. index.html) for your S3 bucket under Properties > Static Website Hosting.

  5. Use the following example to add a Bucket Policy (replace example-bucket with your S3 bucket name).

    {
        "Version":"2012-10-17",
        "Statement":[{
            "Sid":"PublicReadGetObject",
            "Effect":"Allow",
            "Principal": "*",
            "Action":["s3:GetObject"],
            "Resource":["arn:aws:s3:::example-bucket/*"]
        }]
    }
    
  6. Add the bucket policy in the Permissions drop down.

  7. Test the accessibility of your S3 bucket with the Endpoint URL.

  8. Log in to the KeyCDN dashboard and create a Pull Zone using the S3 Endpoint as your Origin URL.

  9. Access your content through the Zone URL (in this example http://s3-1.kxcdn.com/keycdn-logo.png).

Supercharge your content delivery 🚀

Try KeyCDN with a free 14 day trial, no credit card required.

Get started
KeyCDN uses cookies to make its website easier to use. Learn more about cookies.