Skip to content

Commit f1c750f

Browse files
authored
fix: Added prefix to metric name for alarm to work (#32)
1 parent 2957c90 commit f1c750f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/cis-alarms/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ resource "aws_cloudwatch_log_metric_filter" "this" {
9696
log_group_name = lookup(each.value, "log_group_name", var.log_group_name)
9797

9898
metric_transformation {
99-
name = each.key
99+
name = "${local.prefix}${each.key}"
100100
namespace = lookup(each.value, "namespace", var.namespace)
101101
value = 1
102102
default_value = 0

0 commit comments

Comments
 (0)