-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
45 lines (44 loc) · 888 Bytes
/
serverless.yml
File metadata and controls
45 lines (44 loc) · 888 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
custom:
dotenv:
exclude:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- NODE_ENV
required:
file: true
serverless-offline:
httpPort: 4000
noPrependStageInUrl: true
frameworkVersion: '2'
functions:
graphql:
events:
- httpApi:
path: /${env:SLS_STAGE}/graphql
method: '*'
handler: src/handler.graphqlHandler
memorySize: 2048
package:
exclude:
- 'node_modules/**/prisma'
- 'node_modules/**/prisma2'
- 'node_modules/**/*-darwin'
plugins:
- serverless-dotenv-plugin
- serverless-plugin-typescript
- serverless-offline
provider:
httpApi:
cors: true
payload: '1.0'
name: aws
region: ${env:SLS_REGION}
runtime: nodejs12.x
stage: ${env:SLS_STAGE}
vpc:
securityGroupIds:
- sg-f88d4c97
subnetIds:
- subnet-d82838b3
- subnet-2498ca69
service: werz-api