Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 26, 2023
1 parent 9b47a04 commit 60093b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpn-transit-gateway/cloudwatch_alarms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ locals {
}

resource "aws_cloudwatch_metric_alarm" "tgw_vpn" {
for_each = var.create_cloudwatch_alarms && var.cloudwatch_alarm_topic_arn != null ? local.vpn_details : {}
for_each = var.enable_cloudwatch_alarms && var.cloudwatch_alarm_topic_arn != null ? local.vpn_details : {}
actions_enabled = true
alarm_actions = [var.cloudwatch_alarm_topic_arn]
alarm_description = templatefile("${path.module}/templates/cloudwatch_alarm.tpl", tomap(each.value))
Expand Down

0 comments on commit 60093b7

Please sign in to comment.