-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathawsm.json
65 lines (65 loc) · 2.42 KB
/
awsm.json
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
56
57
58
59
60
61
62
63
64
65
{
"name": "cloudfront",
"version": "0.0.1",
"location": "https://github.com/boushley/awsm-cloudfront",
"author": "boushley",
"description": "Define the resources necessary for creating a CloudFront distribution in front of a static S3 bucket and API Gateway endpoints",
"resources": {
"cloudFormation": {
"ApiGatewayIamPolicyDocumentStatements": [],
"LambdaIamPolicyDocumentStatements": [],
"Resources": {
"CloudFrontDistribution": {
"Type" : "AWS::CloudFront::Distribution",
"Properties" : {
"DistributionConfig" : {
"DefaultRootObject" : "index.html",
"Enabled" : true,
"DefaultCacheBehavior" : {
"AllowedMethods" : ["GET", "HEAD"],
"CachedMethods" : ["HEAD", "GET"],
"ForwardedValues" : {
"QueryString" : true
},
"MinTTL" : "0",
"TargetOriginId" : "frontend-s3-bucket",
"ViewerProtocolPolicy" : "allow-all"
},
"CacheBehaviors" : [
{
"AllowedMethods" : ["DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT"],
"CachedMethods" : ["HEAD", "GET"],
"ForwardedValues" : {
"QueryString" : true
},
"MinTTL" : "0",
"PathPattern" : "api/*",
"TargetOriginId" : "api-backend-dev-stage",
"ViewerProtocolPolicy" : "redirect-to-https"
}
],
"Origins" : [
{
"CustomOriginConfig" : {
"HTTPSPort" : "443",
"OriginProtocolPolicy" : "match-viewer"
},
"DomainName" : "hwb072hele.execute-api.us-west-2.amazonaws.com",
"Id" : "api-backend-dev-stage",
"OriginPath" : "/dev"
},
{
"DomainName" : "jaws-s3.boushley.net.s3.amazonaws.com",
"Id" : "frontend-s3-bucket",
"OriginPath" : "",
"S3OriginConfig" : {}
}
],
"PriceClass" : "PriceClass_100"
}
}
}
}
}
}
}