-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
264 lines (234 loc) · 6.26 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
org: yeukfei05
app: hk-bus-arrival-serverless
service: hk-bus-arrival-serverless
frameworkVersion: "3"
useDotenv: true
provider:
name: aws
runtime: nodejs16.x
stage: prod
region: ap-southeast-1
apiName: hk-bus-arrival-serverless-prod
tracing:
apiGateway: true
lambda: true
environment:
NODE_ENV: production
MY_AWS_ACCESS_KEY: ${param:MY_AWS_ACCESS_KEY}
MY_AWS_SECRET_ACCESS_KEY: ${param:MY_AWS_SECRET_ACCESS_KEY}
apiGateway:
shouldStartNameWithService: true
description: hk bus arrival serverless prod
architecture: arm64
timeout: 30
memorySize: 2000
functions:
nwfbOrCtbCompany:
handler: src/nwfbOrCtb/company/handler.company
events:
- http:
path: /company
method: get
cors: true
nwfbOrCtbBusRouteListScheduleJob:
handler: src/nwfbOrCtb/busRouteListScheduleJob/handler.busRouteListScheduleJob
events:
# - http:
# path: /bus-route-list-schedule-job
# method: get
# cors: true
- schedule: cron(0 1 1 * ? *)
timeout: 900
memorySize: 10000
# nwfbOrCtbBusStopListScheduleJob:
# handler: src/nwfbOrCtb/busStopListScheduleJob/handler.busStopListScheduleJob
# events:
# # - http:
# # path: /bus-stop-list-schedule-job
# # method: get
# # cors: true
# - schedule: cron(0 2 1 * ? *)
# timeout: 900
# memorySize: 10000
nwfbOrCtbBusRouteList:
handler: src/nwfbOrCtb/busRouteList/handler.busRouteList
events:
- http:
path: /bus-route-list
method: get
cors: true
nwfbOrCtbBusStopList:
handler: src/nwfbOrCtb/busStopList/handler.busStopList
events:
- http:
path: /bus-stop-list
method: get
cors: true
nwfbOrCtbBusRoute:
handler: src/nwfbOrCtb/busRoute/handler.busRoute
events:
- http:
path: /bus-route
method: get
cors: true
nwfbOrCtbBusRouteStop:
handler: src/nwfbOrCtb/busRouteStop/handler.busRouteStop
events:
- http:
path: /bus-route-stop
method: get
cors: true
nwfbOrCtbBusStop:
handler: src/nwfbOrCtb/busStop/handler.busStop
events:
- http:
path: /bus-stop/{busStopId}
method: get
cors: true
nwfbOrCtbBusArrivalTime:
handler: src/nwfbOrCtb/busArrivalTime/handler.busArrivalTime
events:
- http:
path: /bus-arrival-time
method: get
cors: true
nwfbOrCtbBusStopArrivalTime:
handler: src/nwfbOrCtb/busStopArrivalTime/handler.busStopArrivalTime
events:
- http:
path: /bus-stop-arrival-time
method: get
cors: true
kmbBusRouteListScheduleJob:
handler: src/kmb/busRouteListScheduleJob/handler.busRouteListScheduleJob
events:
# - http:
# path: /kmb/bus-route-list-schedule-job
# method: get
# cors: true
- schedule: cron(0 1 1 * ? *)
timeout: 900
memorySize: 10000
kmbBusStopListScheduleJob:
handler: src/kmb/busStopListScheduleJob/handler.busStopListScheduleJob
events:
# - http:
# path: /kmb/bus-stop-list-schedule-job
# method: get
# cors: true
- schedule: cron(0 2 1 * ? *)
timeout: 900
memorySize: 10000
kmbBusRouteList:
handler: src/kmb/busRouteList/handler.busRouteList
events:
- http:
path: /kmb/bus-route-list
method: get
cors: true
kmbBusStopList:
handler: src/kmb/busStopList/handler.busStopList
events:
- http:
path: /kmb/bus-stop-list
method: get
cors: true
kmbBusRoute:
handler: src/kmb/busRoute/handler.busRoute
events:
- http:
path: /kmb/bus-route
method: get
cors: true
kmbBusRouteStop:
handler: src/kmb/busRouteStop/handler.busRouteStop
events:
- http:
path: /kmb/bus-route-stop
method: get
cors: true
kmbBusStop:
handler: src/kmb/busStop/handler.busStop
events:
- http:
path: /kmb/bus-stop/{busStopId}
method: get
cors: true
kmbBusArrivalTime:
handler: src/kmb/busArrivalTime/handler.busArrivalTime
events:
- http:
path: /kmb/bus-arrival-time
method: get
cors: true
kmbBusStopArrivalTime:
handler: src/kmb/busStopArrivalTime/handler.busStopArrivalTime
events:
- http:
path: /kmb/bus-stop-arrival-time
method: get
cors: true
kmbBusRouteArrivalTime:
handler: src/kmb/busRouteArrivalTime/handler.busRouteArrivalTime
events:
- http:
path: /kmb/bus-route-arrival-time
method: get
cors: true
nlbBusRouteListScheduleJob:
handler: src/nlb/busRouteListScheduleJob/handler.busRouteListScheduleJob
events:
# - http:
# path: /nlb/bus-route-list-schedule-job
# method: get
# cors: true
- schedule: cron(0 1 1 * ? *)
timeout: 900
memorySize: 10000
nlbBusStopListScheduleJob:
handler: src/nlb/busStopListScheduleJob/handler.busStopListScheduleJob
events:
# - http:
# path: /nlb/bus-stop-list-schedule-job
# method: get
# cors: true
- schedule: cron(0 2 1 * ? *)
timeout: 900
memorySize: 10000
nlbBusRouteList:
handler: src/nlb/busRouteList/handler.busRouteList
events:
- http:
path: /nlb/bus-route-list
method: get
cors: true
nlbBusStopList:
handler: src/nlb/busStopList/handler.busStopList
events:
- http:
path: /nlb/bus-stop-list
method: get
cors: true
nlbBusRouteStop:
handler: src/nlb/busRouteStop/handler.busRouteStop
events:
- http:
path: /nlb/bus-route-stop
method: get
cors: true
nlbBusArrivalTime:
handler: src/nlb/busArrivalTime/handler.busArrivalTime
events:
- http:
path: /nlb/bus-arrival-time
method: get
cors: true
nlbBusStopArrivalTime:
handler: src/nlb/busStopArrivalTime/handler.busStopArrivalTime
events:
- http:
path: /nlb/bus-stop-arrival-time
method: get
cors: true
plugins:
- serverless-offline