Note:

Boost Content Delivery with Oracle Cloud Infrastructure Object Storage and Amazon CloudFront

Introduction

If you manage a website, application, or any other web-based service, chances are you are dealing with static content—such as images, videos, audio files, and scripts like CSS or JavaScript. In traditional hosting environments, before the rise of cloud computing, these assets were typically stored on a single physical server located in one geographic region. This often resulted in slower load times and increased latency for users farther from that server.

Using Oracle Cloud Infrastructure (OCI) Object Storage to store your static content, and pairing it with Amazon CloudFront for global content delivery, you can significantly improve performance. This architecture ensures faster load times, reduced latency, and seamless scalability—making it ideal for serving users across multiple regions without compromising speed or reliability.

Objectives

Prerequisites

Task 1: Create Amazon CloudFront Distribution

  1. Enter object storage domain in Origin Domain, and the remaining part of the URL in Origin Path. Additionally, enter a descriptive Name for the origin for easier reference as shown in the following image.

    Origin Details

    Note: For a private OCI Object Storage bucket, you need to use Pre-Authenticate Request (PAR) URL of objects.

  2. Select CachingOptimized as Cache Policy and CORS-CustomOrigin as Origin Request Policy - optional.

    Origin and Cache policy

  3. You can configure Amazon CloudFront to return a specific object (the default root object) when a user (viewer) requests the root URL for your distribution instead of requesting an object in your distribution. You can use a default root object to avoid exposing the contents of your distribution. In this example, enter index.html in Default root object - optional.

    Origin and Cache policy

  4. Click Create, and you will be taken to the distribution details page, where the Last Modified status will show as Deploying.

    Origin and Cache policy

  5. After the distribution is successfully deployed, you can access your static content in the browser using the distribution domain name.

    Origin and Cache policy

    Origin and Cache policy

Acknowledgments

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.