-
Notifications
You must be signed in to change notification settings - Fork 4
/
serverless.yml
48 lines (40 loc) · 929 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
service: slack-bot
frameworkVersion: '3'
custom:
dotenv:
path: .env
serverless-offline:
httpPort: 3000
package:
excludeDevDependencies: false
individually: true
provider:
name: aws
runtime: nodejs20.x
region: us-east-1
functions:
events:
handler: dist/lambda/main.handler
events:
- httpApi:
path: /events
method: post
commands:
handler: dist/lambda/main.handler
events:
- httpApi:
path: /commands
method: post
send-message:
handler: dist/lambda/main.handler
events:
- httpApi:
path: /send-message
method: post
timeout: 300
plugins:
- serverless-offline
- serverless-plugin-typescript
- serverless-dotenv-plugin
- serverless-plugin-common-excludes # this should go before serverless-plugin-include-dependencies
- serverless-plugin-include-dependencies