File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ module "ebs_optimization" {
6
6
tag_filter_value = " Production"
7
7
sns_topic_name = " ebs-optimization-alerts"
8
8
email_endpoint = " finops-team@example.com"
9
- use_fake_data = true
9
+ use_fake_data = true
10
10
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ data "aws_ebs_volume" "volume_details" {
13
13
values = [each . value ]
14
14
}
15
15
filter {
16
- name = " volume_type"
16
+ name = " volume_type"
17
17
values = [each . value ]
18
18
}
19
19
}
@@ -90,10 +90,10 @@ resource "aws_cloudwatch_metric_alarm" "read_ops_low" {
90
90
comparison_operator = " LessThanThreshold"
91
91
evaluation_periods = 1
92
92
metric_name = " VolumeReadOps"
93
- namespace = " AWS/EBS"
94
- period = 300
95
- statistic = " Average"
96
- threshold = local. alarm_thresholds [each . value . volume_type ]. read_ops
93
+ namespace = " AWS/EBS"
94
+ period = 300
95
+ statistic = " Average"
96
+ threshold = local. alarm_thresholds [each . value . volume_type ]. read_ops
97
97
dimensions = {
98
98
VolumeId = each.key
99
99
}
@@ -107,10 +107,10 @@ resource "aws_cloudwatch_metric_alarm" "write_ops_low" {
107
107
comparison_operator = " LessThanThreshold"
108
108
evaluation_periods = 1
109
109
metric_name = " VolumeWriteOps"
110
- namespace = " AWS/EBS"
111
- period = 300
112
- statistic = " Average"
113
- threshold = local. alarm_thresholds [each . value . volume_type ]. write_ops
110
+ namespace = " AWS/EBS"
111
+ period = 300
112
+ statistic = " Average"
113
+ threshold = local. alarm_thresholds [each . value . volume_type ]. write_ops
114
114
dimensions = {
115
115
VolumeId = each.key
116
116
}
You can’t perform that action at this time.
0 commit comments