January 2019
Intermediate to advanced
490 pages
15h 37m
English
Unlike with the CLI commands, there is no shorthand way to create a CloudFront distribution with a CloudFormation template without specifying the distribution config parameters. I will, however, only add the essential parameters in this recipe:
Resources: MyCloudFrontDistribution: Type: AWS::CloudFront::Distribution Properties: DistributionConfig: Origins: - DomainName: quizzer.cloud.s3.amazonaws.com Id: myS3Origin S3OriginConfig: OriginAccessIdentity: '' Enabled: 'true' Comment: 'CloudFront Distribution for S3 Bucket' DefaultRootObject: index.html DefaultCacheBehavior: TargetOriginId: ...
Read now
Unlock full access