Getting started with a basic CloudFront distribution - Amazon CloudFront
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Getting started with a basic CloudFront distribution

The procedures in this section show you how to use CloudFront to set up a basic configuration that does the following:

  • Creates a bucket to use as your distribution origin.

  • Stores the original versions of your objects in an Amazon Simple Storage Service (Amazon S3) bucket.

  • Uses origin access control (OAC) to send authenticated requests to your Amazon S3 origin. OAC sends requests through CloudFront to prevent viewers from accessing your S3 bucket directly. For more information about OAC, see Restricting access to an Amazon S3 origin.

  • Uses the CloudFront domain name in URLs for your objects (for example, https://d111111abcdef8.cloudfront.net/index.html).

  • Keeps your objects in CloudFront edge locations for the default duration of 24 hours (the minimum duration is 0 seconds).

Most of these options are customizable. For information about how to customize your CloudFront distribution options, see Steps for creating a distribution (overview).

Prerequisites

Before you begin, make sure that you’ve completed the steps in Setting up.