Last active
March 25, 2020 08:33
-
-
Save succi0303/61861f70ee89903c10a1cb92114fc775 to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"Resources": { | |
"myBucket": { | |
"Type": "AWS::S3::Bucket" | |
}, | |
"myDistribution": { | |
"Type": "AWS::CloudFront::Distribution", | |
"Properties": { | |
"origins": [ | |
{ | |
"DomainName": { | |
"Fn::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