2022-12-08 10:42:05 +08:00
|
|
|
resource "aws_cloudwatch_metric_alarm" "tgw-PacketDropCountNoRoute" {
|
|
|
|
alarm_name = "${var.cw-alarm-prefix}:TGW:PacketDropCountNoRoute:${var.tgw-id}"
|
2023-01-05 23:35:31 +08:00
|
|
|
comparison_operator = var.settings.PacketDropCountNoRoute.comparison_operator
|
|
|
|
evaluation_periods = var.settings.PacketDropCountNoRoute.evaluation_periods
|
2022-12-08 10:42:05 +08:00
|
|
|
metric_name = "PacketDropCountNoRoute"
|
2023-01-05 23:35:31 +08:00
|
|
|
period = var.settings.PacketDropCountNoRoute.period
|
|
|
|
statistic = var.settings.PacketDropCountNoRoute.statistic
|
|
|
|
threshold = var.settings.PacketDropCountNoRoute.threshold
|
2022-12-08 10:42:05 +08:00
|
|
|
alarm_description = "TGW:PacketDropCountNoRoute"
|
|
|
|
namespace = "AWS/TransitGateway"
|
|
|
|
insufficient_data_actions = []
|
|
|
|
actions_enabled = var.actions-enabled
|
2023-01-05 23:35:31 +08:00
|
|
|
alarm_actions = [var.settings.PacketDropCountNoRoute.action]
|
|
|
|
ok_actions = [var.settings.PacketDropCountNoRoute.action]
|
2022-12-08 10:42:05 +08:00
|
|
|
dimensions = {
|
|
|
|
TransitGateway = var.tgw-id
|
|
|
|
}
|
|
|
|
tags = var.default-tags
|
|
|
|
lifecycle {
|
|
|
|
ignore_changes = [tags]
|
|
|
|
}
|
|
|
|
}
|