terraform.aws-baseline-infra/modules/ManagementGovernance/Monitoring.TGW
2023-07-04 08:16:09 +08:00
..
main.tf UPD: various monitoring updates from upstream 2023-07-04 08:16:09 +08:00
provider.tf UPD: backported monitoring modules from customer repo 2023-05-23 13:10:16 +08:00
README.md NEW: TGW and NGW monitoring 2022-12-08 10:42:05 +08:00
variables.tf UPD: various monitoring updates from upstream 2023-07-04 08:16:09 +08:00

Monitoring module

This module deploys the default cloudwatch metric monitoring

Notes

Terraform lifecycle ignores tags to speed up terraform subsequent update. Cloudwatch alarm tags cannot be read on aws console anyway.

Example

module "tgw" {
  source        = "../../modules/util/resource-list"
  resource-type = "tgw"
}

module "tgw-monitoring" {
  cw-alarm-prefix               = local.cw-alarm-prefix
  for_each                      = module.tgw.result-set
  source                        = "../../modules/ManagementGovernance/Monitoring.TGW"
  default-tags                  = local.default-tags
  job-flow-id                   = split("/", each.value)[1]
  threshold-PacketDropCountNoRoute = 1
  actions-enabled               = var.actions-enabled
  sns-targets = var.sns-targets
}