24 lines
798 B
Markdown
24 lines
798 B
Markdown
# 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
|
|
```terraform
|
|
module "nlb-arns" {
|
|
source = "../../modules/util/resource-list"
|
|
resource-type = "nlb"
|
|
}
|
|
|
|
module "nlb-monitoring" {
|
|
cw-alarm-prefix = local.cw-alarm-prefix
|
|
for_each = module.nlb-arns.result-set
|
|
source = "../../modules/ManagementGovernance/Monitoring.NLB"
|
|
default-tags = local.default-tags
|
|
load-balancer = each.value
|
|
threshold-HealthHostCountMin = 1
|
|
actions-enabled = var.actions-enabled
|
|
sns-targets = var.sns-targets
|
|
}
|
|
``` |