Skip to content

Commit

Permalink
fix: Added prefix to metric name for alarm to work (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoolala committed Jan 13, 2022
1 parent 2957c90 commit f1c750f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cis-alarms/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ resource "aws_cloudwatch_log_metric_filter" "this" {
log_group_name = lookup(each.value, "log_group_name", var.log_group_name)

metric_transformation {
name = each.key
name = "${local.prefix}${each.key}"
namespace = lookup(each.value, "namespace", var.namespace)
value = 1
default_value = 0
Expand Down

0 comments on commit f1c750f

Please sign in to comment.