-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathserverless.yml
executable file
·47 lines (45 loc) · 1.05 KB
/
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
service: cognito-auth-nodejs
provider:
name: aws
runtime: nodejs14.x
region: us-east-1
environment:
USERPOOL_ID: "<USERPOOL_ID>"
CLIENT_ID: "<CLIENT_ID>"
REGION: "<REGION>"
functions:
auth-services:
handler: handler.handler
events:
- http:
path: /api
method: get
- http:
path: /api/signup
method: post
- http:
path: /api/signin
method: post
- http:
path: /api/signout
method: post
- http:
path: /api/confirmotp
method: post
- http:
path: /api/resendotp
method: post
- http:
path: /api/changepassword
method: post
- http:
path: /api/forgotpassword
method: post
- http:
path: /api/confirmforgotpassword
method: post
- http:
path: /api/helloworld
method: get
plugins:
- serverless-offline