Skip to content

Commit 0f7bb1e

Browse files
author
Alexander Wiechert
committed
init
1 parent 30216cf commit 0f7bb1e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

examples/basic/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ module "ebs_optimization" {
66
tag_filter_value = "Production"
77
sns_topic_name = "ebs-optimization-alerts"
88
email_endpoint = "finops-team@example.com"
9-
use_fake_data = true
9+
use_fake_data = true
1010
}

main.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ data "aws_ebs_volume" "volume_details" {
1313
values = [each.value]
1414
}
1515
filter {
16-
name = "volume_type"
16+
name = "volume_type"
1717
values = [each.value]
1818
}
1919
}
@@ -90,10 +90,10 @@ resource "aws_cloudwatch_metric_alarm" "read_ops_low" {
9090
comparison_operator = "LessThanThreshold"
9191
evaluation_periods = 1
9292
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
9797
dimensions = {
9898
VolumeId = each.key
9999
}
@@ -107,10 +107,10 @@ resource "aws_cloudwatch_metric_alarm" "write_ops_low" {
107107
comparison_operator = "LessThanThreshold"
108108
evaluation_periods = 1
109109
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
114114
dimensions = {
115115
VolumeId = each.key
116116
}

0 commit comments

Comments
 (0)