Skip to content

Instantly share code, notes, and snippets.

@RabinMallick
Forked from belminf/cloudfront_distro.yaml
Created December 20, 2018 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RabinMallick/1bb2d976fd85807309da808393edfe72 to your computer and use it in GitHub Desktop.
Save RabinMallick/1bb2d976fd85807309da808393edfe72 to your computer and use it in GitHub Desktop.
Example of an empty S3OriginConfig
AWSTemplateFormatVersion: 2010-09-09
Resources:
Bucket:
Type: 'AWS::S3::Bucket'
Properties:
AccessControl: PublicRead
WebsiteConfiguration:
IndexDocument: index.html
ErrorDocument: error.html
Distro:
Type: 'AWS::CloudFront::Distribution'
Properties:
DistributionConfig:
Origins:
- DomainName: !GetAtt Bucket.DomainName
Id: foo
S3OriginConfig: {}
Enabled: True
DefaultCacheBehavior:
ForwardedValues:
QueryString: False
TargetOriginId: foo
ViewerProtocolPolicy: allow-all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment