-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathserverless.yml
More file actions
36 lines (34 loc) · 842 Bytes
/
serverless.yml
File metadata and controls
36 lines (34 loc) · 842 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
# serverless.yml
service: apollo-lambda
useDotenv: true
provider:
name: aws
runtime: nodejs14.x
#allows lambda function to access ec2
iamRoleStatements:
- Effect: "Allow"
Action: "*"
Resource: "*"
functions:
graphql:
# this is formatted as <FILENAME>.<HANDLER>
handler: serverless/index.handler
events:
- http:
path: /
method: post
cors: true
- http:
path: /
method: get
cors: true
manager:
handler: serverless/functions/manager.handler
events:
- schedule: rate(5 minutes)
plugins:
- serverless-offline
- serverless-dotenv-plugin
custom:
serverless-offline:
noPrependStageInUrl: true