Using an AWS S3 Bucket with a CDN

Using an AWS S3 Bucket with a CDN

To integrate an AWS S3 bucket with a CDN, you’ll need to reference the S3 bucket’s endpoint or the specific object URLs. These allow the CDN to fetch and cache the content hosted in your S3 bucket.

What You Need  

1. S3 Bucket Endpoint  

This is the base URL for accessing your entire S3 bucket.

Format: http://[bucket_name].s3.amazonaws.com/

Example: http://202533521498.s3.ap-south-1.amazonaws.com/

Use this when pointing a CDN to the whole bucket.

 

Screenshot


2. Object URL  

Each file or object stored in the bucket has its own direct URL.

Format: https://[bucket_name].s3.amazonaws.com/[object_key]

Example: https://202533521498.s3.ap-south-1.amazonaws.com/eye.jpeg

Use this when linking or caching specific files.

Where to Find These URLs  

Bucket Overview  

  • Go to the S3 Console.

  • Click on the bucket name.

  • You’ll find the bucket endpoint in the Overview section.

 

Screenshot


Object Properties  

  • Navigate to your desired object (e.g., image, PDF, etc.).

  • Open the Properties tab.

  • The object URL will be displayed there.

Screenshot

 

Allow Public Access to the Object URL  

Configure permissions and access settings in Amazon S3 to allow public access to a specific object via its URL 

Screenshot

Example  

Bucket Name: 202533521498
Object Key: eye.jpeg

Object URL:
https://202533521498.s3.ap-south-1.amazonaws.com/eye.jpeg

This is the URL you would provide to the CDN or use in your website/app.

Screenshot

 

Next Steps  

Once you have the correct URL:

  1. Add it to your CDN origin settings.

  2. Configure your cache rules and custom domains if needed.

  3. Test by accessing the content via your CDN endpoint.


 

    • Related Articles

    • How to Whitelist VergeCloud’s IP Addresses in Your Firewall

      Why You Need Whitelist VergeCloud’s IP Addresses in Your Firewall To ensure smooth and uninterrupted communication between VergeCloud’s edge servers and your main host server, it's crucial to whitelist VergeCloud’s IP addresses in your firewall ...
    • How to Generate a Wildcard SSL Certificate Using acme.sh (DNS Manual Mode)

      This guide walks you through installing acme.sh and generating a wildcard SSL certificate for your domain (vergecloud.cloud) using ZeroSSL with manual DNS verification. Prerequisites A domain name (e.g. vergecloud.cloud) Access to your DNS provider ...
    • DNS Cloud Option

      DNS Records Cloud Option After migrating your website to VergeCloud and completing your DNS configurations, you can view and manage the A Records of your domain and its subdomains under the DNS Records section in the CDN settings of your user ...
    • VergeCloud HTTP Headers

      Headers Sent by CDN to User and Origin Server When a website utilizes VergeCloud CDN, visitor requests are directed to VergeCloud CDN servers rather than the original server that hosts the site. In reply to these requests, the CDN edge server ...
    • Getting Started

      The first step in utilizing our CDN service involves registering your domain within your VergeCloud account. Read more about CDN. This guide will walk you through the necessary steps. NOTICE DNSSEC: Ensure that DNSSEC is disabled on your domain ...