-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
38 lines (38 loc) · 945 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
org: stenmuchow
app: howisthesurf
service: howisthesurf
useDotenv: true
provider:
name: aws
runtime: nodejs18.x
region: us-east-2
stage: ${opt:stage, 'dev'}
environment:
DATABASE_URL: ${env.DATABASE_URL}
functions:
graphql:
handler: src/server.graphqlHandler
events:
- httpApi:
path: /
method: POST
- httpApi:
path: /
method: GET
postConfirmation:
handler: hook/cognito.postSignupHandler
events:
- cognitoUserPool:
pool: ${self:service}-${self:provider.stage}
trigger: PostConfirmation
existing: true
forceDeploy: true
plugins:
- serverless-plugin-typescript
- serverless-dotenv-plugin
package:
patterns:
- "!node_modules/.prisma/client/libquery_engine-*"
- "node_modules/.prisma/client/libquery_engine-rhel-*"
- "!node_modules/prisma/libquery_engine-*"
- "!node_modules/@prisma/engines/**"