-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
46 lines (39 loc) · 1.16 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
service: zemog
package:
exclude:
- "node_modules/**"
- "*"
custom: ${file(./environments/${opt:stage}.yml)}
provider:
name: aws
runtime: nodejs4.3
role: ${self:custom.role}
region: ap-southeast-2
memorySize: 128
deploymentBucket: ${self:custom.deploymentBucket}
functions:
master:
name: ${opt:stage}-zemog-master
handler: src/master.master
events:
- schedule:
name: ${opt:stage}-zemog-master-schedule-event-0
rate: ${self:custom.schedule.0.rate}
enabled: true
input:
QUEUE_NAME: ${self:custom.queueName}
TESTS: ${self:custom.schedule.0.tests}
- schedule:
name: ${opt:stage}-zemog-master-schedule-event-1
rate: ${self:custom.schedule.1.rate}
enabled: true
input:
QUEUE_NAME: ${self:custom.queueName}
TESTS: ${self:custom.schedule.1.tests}
- schedule:
name: ${opt:stage}-zemog-master-schedule-event-2
rate: ${self:custom.schedule.2.rate}
enabled: true
input:
QUEUE_NAME: ${self:custom.queueName}
TESTS: ${self:custom.schedule.2.tests}