-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
49 lines (44 loc) · 1.01 KB
/
serverless.yml
File metadata and controls
49 lines (44 loc) · 1.01 KB
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
service: foodbot
provider:
# Add your provider details
package:
exclude:
- .coverage
- .git
- .gitignore
- .eslintrc
- node_modules/**
functions:
handle_slack_input:
handler: src/handler/handler.handle_slack_input
description: Function for
events:
- http:
path: ${self:custom.api.name}
method: post
cors: true
handle_modals:
handler: src/handler/handler.handle_modals
description: Function for modals
events:
- http:
path: ${self:custom.api.con}
method: post
cors: true
plugins:
- serverless-pseudo-parameters
- serverless-domain-manager
- serverless-offline
- serverless-webpack
- serverless-plugin-include-dependencies
custom:
webpack:
webpackConfig: ./webpack.config.js
includeModules: true # enable auto-packing of external modules
customDomain:
stage: dev
domainName: food-bot-dev.aws.wgen.net
endpointType: regional
api:
name: "foodbot-api"
con: "modals-api"