-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathUntitled-1
46 lines (46 loc) · 1.56 KB
/
Untitled-1
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
aws cloudfront create-distribution \
--origin-domain-name ${{ env.BRANCH_NAME }}.s3.amazonaws.com \
--distribution-config '{
"CallerReference": "${{ env.BRANCH_NAME }}-hypha-dho",
"Aliases": {
"Quantity": 1,
"Items": ["${{ env.BRANCH_NAME }}.dev-services.hypha.earth"]
},
"DefaultRootObject": "index.html",
"Origins": {
"Quantity": 1,
"Items": [
{
"Id": "myS3Origin",
"DomainName": "${{ env.BRANCH_NAME }}.s3.amazonaws.com",
"S3OriginConfig": {
"OriginAccessIdentity": "origin-access-identity/cloudfront/E127EXAMPLE"
}
}
]
},
"DefaultCacheBehavior": {
"TargetOriginId": "myS3Origin",
"ViewerProtocolPolicy": "redirect-to-https",
"TrustedSigners": {
"Enabled": false,
"Quantity": 0
},
"ForwardedValues": {
"QueryString": false,
"Cookies": {
"Forward": "none"
}
},
"MinTTL": 0,
"MaxTTL": 31536000,
"DefaultTTL": 86400
},
"Comment": "Hypha DHO instance deployed automatically on a push to ${{ env.BRANCH_NAME }}",
"PriceClass": "PriceClass_100",
"Enabled": true,
"ViewerCertificate": {
"CloudFrontDefaultCertificate": true
}
}'
--default-root-object index.html