initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# 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 "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
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user