AWS Fundamentals Logo
AWS Fundamentals
AWS::CloudFront::Distribution

CloudFront Distribution

A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.

Properties

2 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
DistributionConfig
DistributionConfig
Required
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
DomainNamestring-
Idstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CloudFront::Distribution

Resources:
  MyResource:
    Type: AWS::CloudFront::Distribution
    Properties:
      DistributionConfig: "value"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

cloudfront:CreateConnectionGroupcloudfront:CreateDistributioncloudfront:CreateDistributionWithTagscloudfront:GetConnectionGroupcloudfront:GetDistributioncloudfront:GetDistributionConfigcloudfront:GetVpcOrigincloudfront:TagResource

delete

cloudfront:DeleteDistributioncloudfront:GetDistributioncloudfront:GetDistributionConfig

list

cloudfront:ListTagsForResourcecloudfront:ListDistributions

read

cloudfront:GetDistributioncloudfront:GetDistributionConfig

update

cloudfront:CreateConnectionGroupcloudfront:GetConnectionGroupcloudfront:GetDistributioncloudfront:GetDistributionConfigcloudfront:GetVpcOrigincloudfront:UpdateDistributioncloudfront:UpdateDistributionWithStagingConfigcloudfront:ListTagsForResource

Get the CloudFront Cheat Sheet

Everything you need to know about CloudFront on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceCloudFront
Properties4
Required1
TaggingSupported
Primary IDId

Supported Operations

CreateDeleteListReadUpdate

External Links