-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathserverless.yml
More file actions
34 lines (29 loc) · 751 Bytes
/
serverless.yml
File metadata and controls
34 lines (29 loc) · 751 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
service: ${env:AWS_SERVICE_NAME}
plugins:
- serverless-content-encoding
custom:
contentEncoding:
minimumCompressionSize: 0
package:
individually: true
provider:
name: aws
runtime: nodejs8.10
deploymentBucket:
name: ${env:AWS_SERVICE_NAME}
region: ${env:AWS_REGION}
stage: ${env:AWS_STAGE}
functions:
graphql:
handler: index.handler # Actual handler substituted in during deploy script
events:
- http:
method: post
path: graphql
cors: true
integration: lambda-proxy
environment:
DATABASE_URL: ${env:DATABASE_URL}
DATABASE_SCHEMAS: ${env:DATABASE_SCHEMAS}
JWT_SECRET: ${env:JWT_SECRET}
JWT_PG_TYPE_IDENTIFIER: ${env:JWT_PG_TYPE_IDENTIFIER}