-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathserverless.yml
More file actions
37 lines (34 loc) · 927 Bytes
/
Copy pathserverless.yml
File metadata and controls
37 lines (34 loc) · 927 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
service: prisma-aws-lambda-deployment
provider:
name: aws
runtime: nodejs12.x
stage: prod
region: ${env:AWS_REGION}
# vpc:
# securityGroupIds:
# - # FILLME
# subnetIds:
# - # FILLME
# - # FILLME
layers:
TopicPrismaAwsNodeModules:
path: lambda-layers-node_modules
TopicPrismaAwsLibs:
path: lambda-layers-libs
TopicPrismaAwsPrismaClient:
path: lambda-layers-prisma-client
functions:
insertUserCron:
handler: insertUser/handler.default
memorySize: 512
timeout: 290 # 4 minutes 50 seconds
events:
- schedule: rate(5 minutes)
environment:
NODE_ENV: production
PRISMA_DATABASE_URL: ${env:PRISMA_DATABASE_URL}
PRISMA_BINARY_TARGET: ${env:PRISMA_BINARY_TARGET}
layers:
- { Ref: TopicPrismaAwsNodeModulesLambdaLayer }
- { Ref: TopicPrismaAwsLibsLambdaLayer }
- { Ref: TopicPrismaAwsPrismaClientLambdaLayer }