-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathserverless.yml
42 lines (37 loc) · 1.11 KB
/
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
service: workplace-safety-check
package:
exclude:
- node_modules/aws-sdk/**
custom: ${file(.env.yml)}
provider:
name: aws
runtime: nodejs6.10
region: eu-west-1
stage: dev
environment:
APP_VERIFY_TOKEN: ${self:custom.APP_VERIFY_TOKEN}
APP_ACCESS_TOKEN: ${self:custom.APP_ACCESS_TOKEN}
APP_SECRET: ${self:custom.APP_SECRET}
GRAPH_API_BASE: ${self:custom.GRAPH_API_BASE}
SC_ALERT_MSG: ${self:custom.SC_ALERT_MSG}
SC_OK_BTN_TEXT: ${self:custom.SC_OK_BTN_TEXT}
SC_HELP_BTN_TEXT: ${self:custom.SC_HELP_BTN_TEXT}
SC_INFO_BTN_TEXT: ${self:custom.SC_INFO_BTN_TEXT}
SC_IDLE_INFO_MSG: ${self:custom.SC_IDLE_INFO_MSG}
USER_NEED_HELP_RESPONSE: ${self:custom.USER_NEED_HELP_RESPONSE}
USER_IS_OK_RESPONSE: ${self:custom.USER_IS_OK_RESPONSE}
USER_ANY_TEXT_RESPONSE: ${self:custom.USER_ANY_TEXT_RESPONSE}
functions:
webhook:
handler: handler.webhook
events:
- http:
path: webhook
method: GET
integration: lambda
- http:
path: webhook
method: POST
integration: lambda
launch:
handler: launch.run