forked from artoliukkonen/serverless-appsync-cloudfront
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresources.yml
More file actions
57 lines (56 loc) · 1.48 KB
/
resources.yml
File metadata and controls
57 lines (56 loc) · 1.48 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
56
57
---
Resources:
AppSyncApiDistribution:
Type: AWS::CloudFront::Distribution
Properties:
DistributionConfig:
Origins:
- Id: AppSync
DomainName:
{ "Fn::Select" : [ "2", { "Fn::Split": ["/", Fn::GetAtt: [ GraphQlApi, GraphQLUrl ]]}] }
CustomOriginConfig:
HTTPPort: '80'
HTTPSPort: '443'
OriginProtocolPolicy: https-only
OriginSSLProtocols: [ "TLSv1", "TLSv1.1", "TLSv1.2" ]
OriginPath: ""
Enabled: true
HttpVersion: http2
Comment: CDN for AppSync
Aliases:
- domain.tld
PriceClass: PriceClass_All
DefaultCacheBehavior:
AllowedMethods:
- DELETE
- GET
- HEAD
- OPTIONS
- PATCH
- POST
- PUT
CachedMethods:
- HEAD
- GET
ForwardedValues:
QueryString: true
Headers: []
Cookies:
Forward: all
MinTTL: '0'
DefaultTTL: '0'
TargetOriginId: AppSync
ViewerProtocolPolicy: redirect-to-https
CustomErrorResponses: []
ViewerCertificate:
AcmCertificateArn: arn
SslSupportMethod: sni-only
Logging:
IncludeCookies: 'false'
Bucket: ''
Prefix: ''
WebACLId: waf-id
Outputs:
AppSyncApiDistribution:
Value:
Fn::GetAtt: [ AppSyncApiDistribution, DomainName ]