-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless.yml
50 lines (44 loc) · 954 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
39
40
41
42
43
44
45
46
47
48
49
50
custom:
defaultStage: dev
accountId: 265343004596
service: slackbot-arthur # NOTE: update this with your service name
package:
individually: false
exclude:
- README.md
- package.json
- .eslintrc.json
- .npmignore
- .travis.yml
- .serverless
- .idea/**
- node_modules/**
- src/**/*.test.js
provider:
name: aws
runtime: nodejs4.3
region: eu-west-1
stage: dev
memorySize: 128 # MB
timeout: 2 # slack has a timeout of 3 sec anyway
functions:
slackbot_arthur:
handler: serverless_handlers.hello
events:
- http:
path: slackbot-arthur
method: post
slackbot_parrot:
handler: serverless_handlers.parrot
events:
- http:
path: slackbot-parrot
method: post
slackbot_bonjour:
handler: serverless_handlers.bonjour
events:
- http:
path: slackbot-bonjour
method: post
plugins:
- serverless-offline