-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathserverless.yml
53 lines (47 loc) · 970 Bytes
/
serverless.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
46
47
48
49
50
51
52
53
service: authorizer
frameworkVersion: '3'
provider:
name: aws
runtime: nodejs14.x
region: ap-northeast-2
httpApi:
authorizers:
customAuthorizer:
type: request
functionName: authorizerFunc
package:
individually: true
functions:
hello:
handler: handlers/hello.handler
package:
patterns:
- "!handlers/**"
- "handlers/hello.js"
- "!node_modules/**"
- "!package**"
events:
- httpApi:
method: get
path: /
authorizer:
name: customAuthorizer
login:
handler: handlers/login.handler
package:
patterns:
- "!handlers/**"
- "handlers/login.js"
events:
- httpApi:
method: post
path: /
authorizerFunc:
handler: handlers/auth.handler
package:
patterns:
- "!handlers/**"
- "handlers/auth.js"
plugins:
- serverless-ignore
- serverless-dotenv-plugin