forked from AnomalyInnovations/serverless-nodejs-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
44 lines (39 loc) · 887 Bytes
/
Copy pathserverless.yml
File metadata and controls
44 lines (39 loc) · 887 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
# NOTE: update this with your service name
service: serverless-nodejs-starter
# Use the serverless-webpack plugin to transpile ES6
plugins:
- serverless-webpack
- serverless-offline
# serverless-webpack configuration
# Enable auto-packing of external modules
custom:
webpack:
webpackConfig: ./webpack.config.js
includeModules: true
serverless-offline:
port: 5000
provider:
name: aws
runtime: nodejs8.10
stage: dev
region: us-east-1
environment: ${file(env.yml):${self:provider.stage}}
functions:
hello:
handler: src/handler.hello
events:
- http:
path: hello
method: get
graphql:
handler: src/graphql.graphqlHandler
events:
- http:
path: graphql
method: post
neo4j:
handler: src/neo4j/neo4j.neo4jHandler
events:
- http:
path: neo4j
method: post