AWS Fundamentals Logo
AWS Fundamentals
AWS::CloudFront::CloudFrontOriginAccessIdentity

CloudFront CloudFrontOriginAccessIdentity

The request to create a new origin access identity (OAI). An origin access identity is a special CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or just some of your Amazon S3 content. For more information, see [Restricting Access to Amazon S3 Content by Using an Origin Access Identity](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html) in the *Amazon CloudFront Developer Guide*.

Properties

1 configurable property. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
CloudFrontOriginAccessIdentityConfig
CloudFrontOriginAccessIdentityConfig
Required

Return Values

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

AttributeTypeDescription
Idstring-
S3CanonicalUserIdstring-

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::CloudFrontOriginAccessIdentity

Resources:
  MyResource:
    Type: AWS::CloudFront::CloudFrontOriginAccessIdentity
    Properties:
      CloudFrontOriginAccessIdentityConfig: "my-cloudfrontoriginaccessidentityconfig"

Required IAM Permissions

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

create

cloudfront:CreateCloudFrontOriginAccessIdentity

delete

cloudfront:DeleteCloudFrontOriginAccessIdentitycloudfront:GetCloudFrontOriginAccessIdentity

list

cloudfront:ListCloudFrontOriginAccessIdentities

read

cloudfront:GetCloudFrontOriginAccessIdentity

update

cloudfront:UpdateCloudFrontOriginAccessIdentitycloudfront:GetCloudFrontOriginAccessIdentity

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
Properties3
Required1
TaggingNot supported
Primary IDId

Supported Operations

CreateDeleteListReadUpdate

External Links