forked from y13i/cfn-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yml
45 lines (45 loc) · 927 Bytes
/
template.yml
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
Transform: AWS::Serverless-2016-10-31
Parameters:
CertificateArn:
Type: String
DomainName:
Type: String
HostedZoneId:
Type: String
Globals:
HttpApi:
Domain:
CertificateArn:
Ref: CertificateArn
DomainName:
Ref: DomainName
Route53:
HostedZoneId:
Ref: HostedZoneId
Resources:
Redirect:
Type: AWS::Serverless::Function
Properties:
CodeUri: src/
Handler: redirect.handler
Runtime: nodejs12.x
Events:
HttpApiEvent:
Type: HttpApi
Properties:
Path: /
Method: GET
Schema:
Type: AWS::Serverless::Function
Properties:
CodeUri: src/
Handler: schema.handler
Runtime: nodejs12.x
Timeout: 15
MemorySize: 320
Events:
HttpApiEvent:
Type: HttpApi
Properties:
Path: /schema
Method: GET