-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless.yml
123 lines (109 loc) · 2.93 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
service: global-services
frameworkVersion: '3'
provider:
name: aws
runtime: go1.x
region: us-west-2
vpc: ${file(.env.global.yml):vpc}
iam:
role:
statements:
- Effect: 'Allow'
Action:
- "lambda:InvokeFunction"
Resource: "*"
# Enable this when creating a lambda inside a VPC
# - Effect: Allow
# Action:
# - ec2:DescribeNetworkInterfaces
# - ec2:CreateNetworkInterface
# - ec2:DeleteNetworkInterface
# - ec2:DescribeInstances
# - ec2:AttachNetworkInterface
# Resource:
# - "*"
package:
patterns:
- '!./**'
- ./bin/**
functions:
dispatch-globally:
handler: bin/dispatch
environment: ${file(.env.dispatch-globally.yml)}
memorySize: 256
timeout: 360
maximumRetryAttempts: 2
events:
- schedule:
rate: rate(1 minute)
enabled: true
dispatch-globally-canary:
handler: bin/dispatch
environment: ${file(.env.dispatch-globally.canary.yml)}
memorySize: 256
timeout: 360
maximumRetryAttempts: 2
events:
- schedule:
rate: rate(1 minute)
enabled: false
run-application-checks:
handler: bin/run-application-checks
environment: ${file(.env.run-application-checks.yml)}
memorySize: 350
timeout: 360
maximumRetryAttempts: 2
events:
- schedule:
rate: rate(3 minutes)
enabled: true
run-application-checks-canary:
handler: bin/run-application-checks
environment: ${file(.env.run-application-checks.canary.yml)}
memorySize: 768
timeout: 360
maximumRetryAttempts: 2
events:
- schedule:
rate: rate(4 minutes)
enabled: false
perform-application-check:
handler: bin/perform-application-check
environment: ${file(.env.perform-application-check.yml)}
memorySize: 128
timeout: 60
perform-application-check-canary:
handler: bin/perform-application-check
environment: ${file(.env.perform-application-check.canary.yml)}
memorySize: 256
timeout: 60
snap-cherry-picker-data:
handler: bin/snap-data
environment: ${file(.env.snap-cherry-picker-data.yml)}
memorySize: 2500
timeout: 600
maximumRetryAttempts: 2
events:
- schedule:
rate: rate(5 minutes)
enabled: true
snap-cherry-picker-data-node-runners:
handler: bin/snap-data
environment: ${file(.env.snap-cherry-picker-data.node-runners.yml)}
memorySize: 2500
timeout: 600
maximumRetryAttempts: 2
events:
- schedule:
rate: rate(5 minutes)
enabled: true
snap-cherry-picker-data-canary:
handler: bin/snap-data
environment: ${file(.env.snap-cherry-picker-data.canary.yml)}
memorySize: 1256
timeout: 360
flush-cache:
handler: bin/flush
environment: ${file(.env.flush-cache.yml)}
memorySize: 128
timeout: 20