resource "aws_cloudwatch_metric_alarm" "tgw-PacketDropCountNoRoute" { alarm_name = "${var.cw-alarm-prefix}:TGW:PacketDropCountNoRoute:${var.tgw-id}" comparison_operator = var.settings.PacketDropCountNoRoute.comparison_operator evaluation_periods = var.settings.PacketDropCountNoRoute.evaluation_periods metric_name = "PacketDropCountNoRoute" period = var.settings.PacketDropCountNoRoute.period statistic = var.settings.PacketDropCountNoRoute.statistic threshold = var.settings.PacketDropCountNoRoute.threshold alarm_description = "TGW:PacketDropCountNoRoute" namespace = "AWS/TransitGateway" insufficient_data_actions = [] actions_enabled = var.actions-enabled alarm_actions = [var.settings.PacketDropCountNoRoute.action] ok_actions = [var.settings.PacketDropCountNoRoute.action] dimensions = { TransitGateway = var.tgw-id } tags = var.default-tags lifecycle { ignore_changes = [tags] } }