-
Notifications
You must be signed in to change notification settings - Fork 4
/
serverless.yml
93 lines (83 loc) · 3.22 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
service: uipath-webhook-receiver
provider:
name: aws
runtime: python2.7
region: ap-northeast-1
stage: ${opt:stage, 'dev'}
environment:
language: ${file(config.${self:provider.stage}.json):language}
orchestrator_url: ${file(config.${self:provider.stage}.json):orchestrator.url}
orchestrator_tenancy_name: ${file(config.${self:provider.stage}.json):orchestrator.tenancy_name}
orchestrator_username: ${file(config.${self:provider.stage}.json):orchestrator.username}
orchestrator_password: ${file(config.${self:provider.stage}.json):orchestrator.password}
orchestrator_api_key: ${file(config.$son):orchestrator.api_key}
orchestrator_ntlm_authentication: ${file(config.${self:provider.stage}.json):orchestrator.ntlm_authentication}
plugins:
- serverless-python-requirements
functions:
backlog:
handler: handler.backlog_handler
environment:
process_name: ${file(config.${self:provider.stage}.json):handler.backlog.process_name}
events:
- http:
path: uipath-webhook-receiver/backlog
method: post
github:
handler: handler.github_handler
environment:
secret: ${file(config.${self:provider.stage}.json):handler.github.secret}
process_name: ${file(config.${self:provider.stage}.json):handler.github.process_name}
events:
- http:
path: uipath-webhook-receiver/github
method: post
google_hangouts:
handler: handler.google_hangouts_handler
environment:
available_processes: ${file(config.${self:provider.stage}.json):handler.google_hangouts.available_processes}
verification_token: ${file(config.${self:provider.stage}.json):handler.google_hangouts.verification_token}
events:
- http:
path: uipath-webhook-receiver/google_hangouts
method: post
html_form:
handler: handler.html_form_handler
environment:
available_processes: ${file(config.${self:provider.stage}.json):handler.html_form.available_processes}
events:
- http:
path: uipath-webhook-receiver/html_form
method: get
- http:
path: uipath-webhook-receiver/html_form
method: post
iot_button:
handler: handler.iot_button_handler
orchestrator:
handler: handler.orchestrator_handler
environment:
secret: ${file(config.${self:provider.stage}.json):handler.orchestrator.secret}
process_name: ${file(config.${self:provider.stage}.json):handler.orchestrator.process_name}
events:
- http:
path: uipath-webhook-receiver/orchestrator
method: post
slack:
handler: handler.slack_handler
environment:
verification_token: ${file(config.${self:provider.stage}.json):handler.slack.verification_token}
available_processes: ${file(config.${self:provider.stage}.json):handler.slack.available_processes}
events:
- http:
path: uipath-webhook-receiver/slack
method: post
wrike:
handler: handler.wrike_handler
environment:
secret: ${file(config.${self:provider.stage}.json):handler.wrike.secret}
process_name: ${file(config.${self:provider.stage}.json):handler.wrike.process_name}
events:
- http:
path: uipath-webhook-receiver/wrike
method: post