Skip to main content
Bunny CDN caches files from your Amazon S3 bucket and delivers them from a global edge network, speeding up delivery and reducing egress costs. This guide walks you through the setup in a few steps.
Prefer to keep your files on bunny.net? Bunny Storage is globally replicated object storage with tight CDN integration, and it offers an S3-compatible API (currently in beta).
1

Create an S3 bucket and upload a file

If you don’t already have a bucket, sign in to the AWS Management Console, click Create bucket, and follow the prompts (see Amazon’s guide for details). Upload a file and give it public-read permissions.
Creating an Amazon S3 bucket
2

Find your bucket's public URL

Click the uploaded file to open its details, which include the public link. Copy only the first part of the link, the hostname and bucket path, for example https://s3-eu-west-1.amazonaws.com/your-bucket/. Don’t include the file name.
Getting the S3 object URL
3

Create a Pull Zone

Log in to your bunny.net dashboard and create a new Pull Zone. Give it a name (this becomes your CDN hostname) and paste the URL from the previous step into the Origin URL field, then choose your pricing tiers and click Add Pull Zone. For details, see How to create your first Pull Zone.
Adding a Pull Zone with the S3 bucket as origin
4

Test your Pull Zone

Once the configuration has synced to the edge network, request a file through your Pull Zone hostname, for example:
https://mys3zone.b-cdn.net/bunny.jpg
If the file is served, Bunny CDN is caching content from your bucket. Replace your S3 URLs with the Bunny CDN URLs in your application to start serving cached content.
Last modified on June 23, 2026