-
Notifications
You must be signed in to change notification settings - Fork 38
/
outputs.tf
68 lines (60 loc) · 3.63 KB
/
outputs.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
65
66
67
68
output "alarm_cpu_utilization_too_high" {
# For older terraform support...
value = var.create_high_cpu_alarm ? aws_cloudwatch_metric_alarm.cpu_utilization_too_high[0] : null
# For Terraform 0.15+, eventually use this much nicer code instead...
# value = one(aws_cloudwatch_metric_alarm.cpu_utilization_too_high.*)
description = "The CloudWatch Metric Alarm resource block for high CPU Utilization"
}
output "alarm_cpu_credit_balance_too_low" {
# For older terraform support...
value = var.create_low_cpu_credit_alarm ? length(regexall("(t2|t3)", var.db_instance_class)) > 0 ? aws_cloudwatch_metric_alarm.cpu_credit_balance_too_low[0] : null : null
# For Terraform 0.15+, eventually use this much nicer code instead...
# value = one(aws_cloudwatch_metric_alarm.cpu_credit_balance_too_low.*)
description = "The CloudWatch Metric Alarm resource block for low CPU Credit Balance"
}
output "alarm_disk_queue_depth_too_high" {
# For older terraform support...
value = var.create_high_queue_depth_alarm ? aws_cloudwatch_metric_alarm.disk_queue_depth_too_high[0] : null
# For Terraform 0.15+, eventually use this much nicer code instead...
# value = one(aws_cloudwatch_metric_alarm.disk_queue_depth_too_high.*)
description = "The CloudWatch Metric Alarm resource block for high Disk Queue Depth"
}
output "alarm_disk_free_storage_space_too_low" {
# For older terraform support...
value = var.create_low_disk_space_alarm ? aws_cloudwatch_metric_alarm.disk_free_storage_space_too_low[0] : null
# For Terraform 0.15+, eventually use this much nicer code instead...
# value = one(aws_cloudwatch_metric_alarm.disk_free_storage_space_too_low.*)
description = "The CloudWatch Metric Alarm resource block for low Free Storage Space"
}
output "alarm_disk_burst_balance_too_low" {
# For older terraform support...
value = var.create_low_disk_burst_alarm ? aws_cloudwatch_metric_alarm.disk_burst_balance_too_low[0] : null
# For Terraform 0.15+, eventually use this much nicer code instead...
# value = one(aws_cloudwatch_metric_alarm.disk_burst_balance_too_low.*)
description = "The CloudWatch Metric Alarm resource block for low Disk Burst Balance"
}
output "alarm_memory_freeable_too_low" {
# For older terraform support...
value = var.create_low_memory_alarm ? aws_cloudwatch_metric_alarm.memory_freeable_too_low[0] : null
# For Terraform 0.15+, eventually use this much nicer code instead...
# value = one(aws_cloudwatch_metric_alarm.memory_freeable_too_low.*)
description = "The CloudWatch Metric Alarm resource block for low Freeable Memory"
}
output "alarm_memory_swap_usage_too_high" {
# For older terraform support...
value = var.create_swap_alarm ? aws_cloudwatch_metric_alarm.memory_swap_usage_too_high[0] : null
# For Terraform 0.15+, eventually use this much nicer code instead...
# value = one(aws_cloudwatch_metric_alarm.memory_swap_usage_too_high.*)
description = "The CloudWatch Metric Alarm resource block for high Memory Swap Usage"
}
output "alarm_connection_count_anomalous" {
# For older terraform support...
value = var.create_anomaly_alarm ? aws_cloudwatch_metric_alarm.connection_count_anomalous[0] : null
# For Terraform 0.15+, eventually use this much nicer code instead...
# value = one(aws_cloudwatch_metric_alarm.connection_count_anomalous.*)
description = "The CloudWatch Metric Alarm resource block for anomalous Connection Count"
}
output "alarm_maximum_used_transaction_ids_too_high" {
value = aws_cloudwatch_metric_alarm.maximum_used_transaction_ids_too_high
description = "The CloudWatch Metric Alarm resource block for postgres' Transaction ID Wraparound"
}