Skip to content

Instantly share code, notes, and snippets.

@belminf
Created April 26, 2017 23:20
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save belminf/345c938cc4f6f3f9a4ba05aa1619c339 to your computer and use it in GitHub Desktop.
Save belminf/345c938cc4f6f3f9a4ba05aa1619c339 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