This repository was archived by the owner on Feb 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcloudformation.json
More file actions
55 lines (55 loc) · 1.61 KB
/
cloudformation.json
File metadata and controls
55 lines (55 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"SsrLogGroup": {
"Properties": {
"RetentionInDays": "30"
}
},
"CloudFrontDistribution": {
"Type": "AWS::CloudFront::Distribution",
"Properties": {
"DistributionConfig": {
"ViewerCertificate": {
"AcmCertificateArn": "arn:aws:acm:us-east-1:966390130392:certificate/db902af7-a1ee-40ab-8145-9bd8b786ba39",
"SslSupportMethod": "sni-only"
},
"DefaultRootObject": "",
"Enabled": true,
"DefaultCacheBehavior": {
"AllowedMethods": ["DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT"],
"CachedMethods": ["HEAD", "GET"],
"ForwardedValues": {
"QueryString": true
},
"MinTTL": 300,
"DefaultTTL": 300,
"MaxTTL": 300,
"TargetOriginId": "ssr-${opt:stage}-api-gateway",
"ViewerProtocolPolicy": "redirect-to-https"
},
"Aliases": ["${file(./env/${opt:stage}.json):DNS_ALIAS}"],
"Origins": [
{
"CustomOriginConfig": {
"HTTPSPort": "443",
"OriginProtocolPolicy": "https-only"
},
"DomainName": {
"Fn::Join": [
"",
[
{
"Ref": "ApiGatewayRestApi"
},
".execute-api.us-east-1.amazonaws.com"
]
]
},
"Id": "ssr-${opt:stage}-api-gateway",
"OriginPath": "/${opt:stage}/${file(./config.yml):service_name}"
}
],
"PriceClass": "PriceClass_100"
}
}
}
}