Created
December 10, 2017 14:22
-
-
Save li0nel/5a2e4bddc6751c1f1dade3fdf7732228 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CloudFrontDistribution: | |
Type: AWS::CloudFront::Distribution | |
Properties: | |
DistributionConfig: | |
Origins: | |
- DomainName: !Ref S3BucketDNSName | |
Id: myS3Origin | |
S3OriginConfig: | |
OriginAccessIdentity: !Ref CloudFrontOAI | |
Enabled: 'true' | |
Aliases: | |
- !Ref CDNAlias | |
DefaultCacheBehavior: | |
Compress: 'true' | |
AllowedMethods: | |
- GET | |
- HEAD | |
- OPTIONS | |
TargetOriginId: myS3Origin | |
ForwardedValues: | |
QueryString: 'false' | |
Cookies: | |
Forward: none | |
ViewerProtocolPolicy: redirect-to-https | |
ViewerCertificate: | |
AcmCertificateArn: !Ref CertificateArn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment