| Did this page help you? Yes No Tell us about it... |
You can use the CloudFront console to list the CloudFront distributions that are associated with your AWS account, view the settings for a distribution, and update most settings. Note that the following settings are currently not available in the CloudFront console:
Specifying trusted signers, the AWS accounts that are allowed to sign URLs for private content. For more information, see Requiring Signed URLs.
Creating an origin access identity, which prevents users from accessing files in an Amazon S3 bucket by using the Amazon S3 URL. For more information, see Securing Your Content in Amazon S3.
Associating an origin access identity with your CloudFront distribution. For more information, see Creating a Private Content Distribution.
For these features, you must use the CloudFront API. For information about which CloudFront API actions to use to list, view, and update download and streaming distributions, see Actions on Distributions.
To List, View, and Update CloudFront Distributions Using the CloudFront Console
Sign in to the AWS Management Console and open the Amazon CloudFront console at https://console.aws.amazon.com/cloudfront/.
In the top pane of the CloudFront console, select the distribution that you want to view or update.
![]() | Note |
|---|---|
The top pane lists all of the distributions that are associated with the AWS account that you used when you signed in to the CloudFront console. |
To edit streaming distribution settings, skip to Step 6.
To edit general settings for a download distribution, perform the following steps.
In the Distribution Details pane, on the General tab, click Edit.
Enter or update the applicable values. For more information about the fields, see General Information.
Alternate Domain Names (CNAMEs): Optional. Specify one or more domain names that you want to use for URLs for your objects instead of the domain name that CloudFront assigns when you create your distribution. For example, if you want the URL for the object:
images/image.jpg
to look like this:
http://www.example.com/images/image.jpg
instead of like this:
http://d111111abcdef8.cloudfront.net/images/image.jpg
you would create a CNAME for www.example.com. You can create up to 10 CNAMEs per distribution.
![]() | Note |
|---|---|
If you add a CNAME for |
![]() | Important |
|---|---|
You must own any domain name that you specify as an alternate domain name. |
Default Root Object: Optional. The object that you want CloudFront to request from your origin
(for example, index.html) when a viewer requests the root URL of your distribution (http://www.example.com/)
instead of an object in your distribution (http://www.example.com/product-description.html).
Specifying a default root object avoids exposing the contents of your distribution.
Logging: Optional. If you want CloudFront to log information about each request for an object and store the log files in an Amazon S3 bucket, select On, and specify the bucket and an optional prefix for the names of the log files. There is no extra charge to enable logging, but you accrue the usual Amazon S3 charges for storing and accessing the files. CloudFront doesn't delete the logs automatically, but you can delete them at any time.
Comments: Optional. Enter any comments that you want to save with the distribution.
Distribution State: Select Enabled if you want CloudFront to begin processing requests as soon as the distribution is created, or select Disabled if you want to wait until later.
Click Yes, Edit.
To add or update an origin for a download distribution, perform the following steps.
In the Distribution Details pane, click the Origin tab.
Click Create Origin or Edit.
Enter or update the applicable values. For more information about the fields, see Origins.
Origin Domain Name: If you're using an Amazon S3 bucket as the origin and if the bucket is associated with the AWS account that you're signed in with, click in the Origin Domain Name field, and select the bucket from the list.
If you're using a bucket that is associated with another AWS account, enter the bucket name in the following format:
bucket-name.s3.amazonaws.com
If you're using an HTTP server as the origin for your distribution, enter the domain name of your
HTTP server, for example, www.example.com.
Origin ID: A string that uniquely distinguishes this origin from other origins in this distribution. Enter a value that will help you identify each origin when you create or update cache behaviors and have to specify an origin using its origin ID.
If you're using an HTTP server as the origin for your distribution, the following fields appear after you enter a domain name.
Origin Protocol Policy: The protocol policy that you want CloudFront to use when fetching objects from your origin server. If you specify HTTP Only, CloudFront only uses HTTP to access the origin. If you specify Match Viewer, CloudFront fetches objects from your origin using HTTP or HTTPS, depending on the protocol of the viewer request.
HTTP Port: The HTTP port that the custom origin listens on. Valid values include ports 80, 443, and 1024 to 65535. The default value is port 80.
HTTPS Port: The HTTPS port that the custom origin listens on. Valid values include ports 80, 443, and 1024 to 65535. The default value is port 443. If the value of Origin Protocol Policy is HTTP Only, you cannot update the value of HTTPS Port.
Click Create if you're adding an origin, or click Yes, Edit if you're updating an existing origin.
To add or update a cache behavior for a download distribution, perform the following steps.
In the Distribution Details pane, click the Behaviors tab.
Click Create Behavior or Edit.
Enter or update the applicable values. For more information about the fields, see Cache Behaviors.
Path Pattern: The pattern (for example, images/*.jpg)
that specifies which requests you want this cache behavior to apply to.
![]() | Note |
|---|---|
You cannot update the path pattern for the default cache behavior. |
Origin: The value of Origin ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.
Viewer Protocol Policy: The protocol policy that you want viewers to use to access your content. If you specify HTTP and HTTPS, viewers can use both protocols. If you specify HTTPS Only, viewers are only allowed to access your content if they're using HTTPS.
Object Caching and Minimum TTL: If your origin server is adding a
Cache-Control header to your objects to control how long they stay in the CloudFront cache, select
Use Origin Cache Headers.
To specify a minimum time that your objects stay in the CloudFront cache regardless of Cache-Control
headers, select Customize. Then specify the minimum number of seconds that you
want objects to stay in the CloudFront cache even if Cache-Control headers specify a lower value.
For more information, see Specifying How Long Objects Stay in a CloudFront Edge Cache (Object Expiration).
Forward Query Strings: If your origin returns different versions of an object
(for example, images/image.jpg) based on a query string in the URL, select Yes.
If your origin returns the same version of an object regardless of the query string, select No. This increases the likelihood that CloudFront can serve a request from the cache, which improves performance and reduces the load on your origin. For more information, see How CloudFront Forwards and Logs Query String Parameters.
Click Create if you're adding a cache behavior, or click Yes, Edit if you're updating an existing cache behavior.
To edit settings for a streaming distribution:
In the Distribution Details pane, click Edit.
Change the applicable values.
Alternate Domain Names (CNAMEs): Optional. Specify one or more domain names that you want to use for URLs for your objects instead of the domain name that CloudFront assigns when you create your distribution. For example, if you want the URL for the object:
images/image.jpg
to look like this:
http://www.example.com/images/image.jpg
instead of like this:
http://d111111abcdef8.cloudfront.net/images/image.jpg
you would create a CNAME for www.example.com. You can create up to 10 CNAMEs per distribution.
![]() | Note |
|---|---|
If you add a CNAME for |
![]() | Important |
|---|---|
You must own any domain name that you specify as an alternate domain name. |
Logging: Optional. If you want CloudFront to log information about each request for an object and store the log files in an Amazon S3 bucket, select On, and specify the bucket and an optional prefix for the names of the log files. There is no extra charge to enable logging, but you accrue the usual Amazon S3 charges for storing and accessing the files. CloudFront doesn't delete the logs automatically, but you can delete them at any time. For more information, see Access Logs.
Comments: Optional. Enter any comments that you want to save with the distribution.
Distribution State: Select Enabled if you want CloudFront to begin processing requests as soon as the distribution is created, or select Disabled if you want to wait until later.
Click Yes, Edit.