Skip to content

Instantly share code, notes, and snippets.

@PaulRBerg
Created December 26, 2018 22:47
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 PaulRBerg/7d946e54c8f5cfc22f514855c6b6e864 to your computer and use it in GitHub Desktop.
Save PaulRBerg/7d946e54c8f5cfc22f514855c6b6e864 to your computer and use it in GitHub Desktop.
CloudFront static website config
{
"CallerReference": "CloudFrontStaticWebsitConfig",
"Aliases": {
"Quantity": 1,
"Items": [
"example.com"
]
},
"DefaultRootObject": "",
"Origins": {
"Quantity": 1,
"Items": [
{
"Id": "example.com",
"DomainName": "example.com.s3-website.your-region.amazonaws.com",
"CustomOriginConfig": {
"HTTPPort": 80,
"HTTPSPort": 443,
"OriginProtocolPolicy": "http-only"
}
}
]
},
"DefaultCacheBehavior": {
"TargetOriginId": "example.com",
"ForwardedValues": {
"QueryString": true,
"Cookies": {
"Forward": "none"
}
},
"TrustedSigners": {
"Enabled": false,
"Quantity": 0
},
"ViewerProtocolPolicy": "allow-all",
"MinTTL": 3600
},
"Comment": "",
"PriceClass": "PriceClass_All",
"Enabled": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment