How to speed up your Amazon S3 file delivery with BunnyCDN

BunnyCDN provides an easy way to speed up your Amazon S3 bucket as well as save thousands of dollars on bandwidth costs. This article will guide you on how to set up BunnyCDN in three easy steps.

1. Create your Amazon S3 bucket and upload some files

If you already have an S3 bucket ready, you can skip this step. If not, sign in to your AWS Management Console account and open Amazon S3 at https://console.aws.amazon.com/s3/

create_amazon_s3_bucket.png

Click on the Create bucket and follow the instructions. If you need more detailed instructions on how to create a bucket, you can look at the guide provided by Amazon. After your bucket is created, upload a file and give it public access permissions.

2. Find your bucket public URL

After you have successfully created a bucket and uploaded a file, click on the uploaded file in the list. This will open a popup window with the file information, including the public Link to your S3 bucket as illustrated in the example screenshot below.

s3_get_url.png

Copy the first part of your S3 link, https://s3-eu-west-1.amazonaws.com/storage.bunnycdn.com/ as highlighted in our example. Be careful not to copy the file name or path unless required for your project.

3. Create a BunnyCDN Pull Zone

Next, sign in to your BunnyCDN dashboard and open the Add Pull Zone page. First, select a name for your zone, this will also double as the hostname for your zone and then paste the copied URL part from step 2 into the Origin URL field, for example:

s3_add_pull_zone.png

Finally, select the pricing tiers and click on the Add Pull Zone button which will add a new Pull Zone configured with your Amazon S3 bucket.

For more detailed instructions, you can have a look at our article on creating your first pull zone

4. Test your new Pull Zone

You're all done. BunnyCDN will automatically pull and cache files from your S3 bucket and deliver them from your newly created hostname. After the server configuration finishes syncing, you can now test if BunnyCDN is correctly integrated with your Amazon S3 bucket.

Visit your newly created pull zone hostname and append one of the uploaded files as the URL, for example in our case:

https://mys3zone.b-cdn.net/bunny.jpg

If everything was correctly set up, you should now see your uploaded file supercharged by BunnyCDN. In your application, you can now simply replace your existing URLs with the new CDN URL and enjoy much faster speeds and lower traffic costs.

Table of Contents

Was this article helpful?
47 out of 62 found this helpful