Skip to content

Instantly share code, notes, and snippets.

@succi0303
Last active March 25, 2020 08:33
Show Gist options
  • Save succi0303/06195f7f4eb7d26d47c86d7a0c0ade04 to your computer and use it in GitHub Desktop.
Save succi0303/06195f7f4eb7d26d47c86d7a0c0ade04 to your computer and use it in GitHub Desktop.
Resources:
myBucket:
Type: 'AWS::S3::Bucket'
myDistribution:
Type: 'AWS::CloudFront::Distribution'
Properties:
Origins:
- DomainName: !GetAtt
- myBucket
- DomainName
Id: myS3Origin
S3OriginConfig: {}
Enabled: 'true'
DefaultCacheBehavior:
TargetOriginId: myS3Origin
ForwardedValues:
QueryString: 'false'
ViewerProtocolPolicy: allow-all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment