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

AWS S3 CDN Integration

Updated on November 9, 2021

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 Properties > Static website hosting, choose Edit. Set Static website hosting to enabled and define the Index Document (does not need to exist, e.g. index.html).

  5. Under Permissions, edit Block public access (bucket settings) and clear Block all public access, and choose Save changes.

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

            "Principal": "*",
  7. Test the accessibility of your S3 bucket with the Endpoint URL.

    curl -I
    HTTP/1.1 200 OK
    x-amz-id-2: IqlLQd9fwZglV4qlKHDHQsevt9l4V/8tczzRV29O0cc9uEYkAivXnaAjriCIu5bxK6Fr+vPW3JI=
    x-amz-request-id: 98X9QN2N3HATC80S
    Date: Tue, 09 Nov 2021 13:04:53 GMT
    Last-Modified: Tue, 09 Nov 2021 13:03:33 GMT
    ETag: "ea008842926a0d2f69dec3fd7462fde8"
    Content-Type: image/png
    Server: AmazonS3
    Content-Length: 6050
  8. Log in to the KeyCDN dashboard and create a Pull Zone using the S3 Endpoint as your Origin URL (e.g.

  9. Access your content through the Zone URL (e.g.

For more details check the Amazon S3 tutorial: Configuring a static website on S3

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