This repository has been archived by the owner on Nov 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlegacy-alerts.tf
64 lines (51 loc) · 2.86 KB
/
legacy-alerts.tf
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
# Legacy alerts for Elastic Load Balancers of non-Kubernetes Pelias infrastructure
# the common theme is to have one non-critical alert for any unhealthy hosts, and one critical for
# zero healthy hosts, for each ELB
module "api-elb-alerts" {
source = "./modules/elb-alerts"
service_name = "${var.service_name}"
environment = "${var.environment}"
actions_enabled = "${var.legacy_alerts_enabled}"
unhealthy-host-evaluation-periods = "${var.unhealthy-host-evaluation-periods}"
healthy-host-evaluation-periods = "${var.healthy-host-evaluation-periods}"
critical-alert-sns-topic-arn = "${data.aws_sns_topic.critical-alerts.arn}"
non-critical-alert-sns-topic-arn = "${data.aws_sns_topic.non-critical-alerts.arn}"
friendly-lb-name = "API"
lb-name = "${var.legacy-pelias-api-elb-name}"
}
module "pip-elb-alerts" {
source = "./modules/elb-alerts"
service_name = "${var.service_name}"
environment = "${var.environment}"
actions_enabled = "${var.legacy_alerts_enabled}"
unhealthy-host-evaluation-periods = "${var.unhealthy-host-evaluation-periods}"
healthy-host-evaluation-periods = "${var.healthy-host-evaluation-periods}"
critical-alert-sns-topic-arn = "${data.aws_sns_topic.critical-alerts.arn}"
non-critical-alert-sns-topic-arn = "${data.aws_sns_topic.non-critical-alerts.arn}"
friendly-lb-name = "PIP"
lb-name = "${var.legacy-pelias-pip-elb-name}"
}
module "placeholder-elb-alerts" {
source = "./modules/elb-alerts"
service_name = "${var.service_name}"
environment = "${var.environment}"
actions_enabled = "${var.legacy_alerts_enabled}"
unhealthy-host-evaluation-periods = "${var.unhealthy-host-evaluation-periods}"
healthy-host-evaluation-periods = "${var.healthy-host-evaluation-periods}"
critical-alert-sns-topic-arn = "${data.aws_sns_topic.critical-alerts.arn}"
non-critical-alert-sns-topic-arn = "${data.aws_sns_topic.non-critical-alerts.arn}"
friendly-lb-name = "Placeholder"
lb-name = "${var.legacy-pelias-placeholder-elb-name}"
}
module "interpolation-elb-alerts" {
source = "./modules/elb-alerts"
service_name = "${var.service_name}"
environment = "${var.environment}"
actions_enabled = "${var.legacy_alerts_enabled}"
unhealthy-host-evaluation-periods = "${var.unhealthy-host-evaluation-periods}"
healthy-host-evaluation-periods = "${var.healthy-host-evaluation-periods}"
critical-alert-sns-topic-arn = "${data.aws_sns_topic.critical-alerts.arn}"
non-critical-alert-sns-topic-arn = "${data.aws_sns_topic.non-critical-alerts.arn}"
friendly-lb-name = "Interpolation"
lb-name = "${var.legacy-pelias-interpolation-elb-name}"
}