-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
46 lines (41 loc) · 851 Bytes
/
serverless.yml
File metadata and controls
46 lines (41 loc) · 851 Bytes
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
service: yyt-auth
plugins:
- serverless-webpack
- serverless-prune-plugin
- serverless-offline
provider:
name: aws
stage: ${env:STAGE, "dev"}
runtime: nodejs12.x
region: ap-northeast-2
lambdaHashingVersion: 20201221
tracing:
apiGateway: true
lambda: true
apiGateway:
minimumCompressionSize: 1024
shouldStartNameWithService: true
environment:
AWS_NODEJS_CONNECTION_REUSE_ENABLED: 1
JWT_SECRET_KEY: ${env:JWT_SECRET_KEY}
custom:
prune:
automatic: true
number: 7
package:
individually: true
functions:
simple:
handler: src/simple/issue.handle
events:
- http:
method: post
path: simple
cors: true
loginWithGoogle:
handler: src/google/login.handle
events:
- http:
method: post
path: google
cors: true