-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
55 lines (47 loc) · 1.59 KB
/
main.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
module "test_instance_bunny" {
source = "cloudamqp-instance"
instance_name = "test-instance"
instance_plan = "bunny"
instance_region = "amazon-web-services::eu-west-1"
}
resource "cloudamqp_alarm_recipient" "test_recipient" {
type = "email"
value = "[email protected]"
console_api_key = "${module.test_instance_bunny.console_api_key}"
}
resource "cloudamqp_alarm_configuration" "test_alarm_cpu" {
type = "cpu"
value_threshold = 90
time_threshold = 120
console_api_key = "${module.test_instance_bunny.console_api_key}"
}
resource "cloudamqp_alarm_configuration" "test_alarm_memory" {
type = "memory"
value_threshold = 90
time_threshold = 120
console_api_key = "${module.test_instance_bunny.console_api_key}"
}
resource "cloudamqp_alarm_configuration" "test_alarm_disk" {
type = "disk"
value_threshold = 5
time_threshold = 600
console_api_key = "${module.test_instance_bunny.console_api_key}"
}
resource "cloudamqp_alarm_configuration" "test_alarm_connection" {
type = "connection"
value_threshold = 100
time_threshold = 600
console_api_key = "${module.test_instance_bunny.console_api_key}"
}
resource "cloudamqp_alarm_configuration" "test_alarm_netsplit" {
type = "netsplit"
console_api_key = "${module.test_instance_bunny.console_api_key}"
}
resource "cloudamqp_alarm_configuration" "test_alarm_queue" {
type = "queue"
value_threshold = 100
time_threshold = 600
vhost_regex = ".*"
queue_regex = ".*"
console_api_key = "${module.test_instance_bunny.console_api_key}"
}