Note:
- This tutorial requires access to Oracle Cloud. To sign up for a free account, see Get started with Oracle Cloud Infrastructure Free Tier.
- It uses example values for Oracle Cloud Infrastructure credentials, tenancy, and compartments. When completing your lab, substitute these values with ones specific to your cloud environment.
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
- Use OCI Object Storage with Amazon CloudFront for efficient, scalable, and low-latency delivery of static content.
Prerequisites
-
Create an OCI Object Storage bucket and upload the static content to the bucket. For more information, see Object Storage Buckets.
-
Copy object URL Path (URI) from the object details page.
Task 1: Create Amazon CloudFront Distribution
-
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.
Note: For a private OCI Object Storage bucket, you need to use Pre-Authenticate Request (PAR) URL of objects.
-
Select CachingOptimized as Cache Policy and CORS-CustomOrigin as Origin Request Policy - optional.
-
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.
-
Click Create, and you will be taken to the distribution details page, where the Last Modified status will show as Deploying.
-
After the distribution is successfully deployed, you can access your static content in the browser using the distribution domain name.
Related Links
Acknowledgments
- Authors - Nikhil Khandelwal (Enterprise Cloud Architect), Maninder Flora (Enterprise Cloud Architect)
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.
Boost Content Delivery with Oracle Cloud Infrastructure Object Storage and Amazon CloudFront
G33820-01
Copyright ©2025, Oracle and/or its affiliates.