diff --git a/modules/ManagementGovernance/Monitoring.EventBridge/README.md b/modules/ManagementGovernance/Monitoring.EventBridge/README.md new file mode 100644 index 0000000..616d36f --- /dev/null +++ b/modules/ManagementGovernance/Monitoring.EventBridge/README.md @@ -0,0 +1,5 @@ +# 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. diff --git a/modules/ManagementGovernance/Monitoring.EventBridge/main.tf b/modules/ManagementGovernance/Monitoring.EventBridge/main.tf new file mode 100644 index 0000000..914fc84 --- /dev/null +++ b/modules/ManagementGovernance/Monitoring.EventBridge/main.tf @@ -0,0 +1,22 @@ +resource "aws_cloudwatch_event_rule" "EventRule" { + name = "${var.cw-alarm-prefix}-health-events" + description = "A CloudWatch Event Rule that triggers on changes in the status of AWS Personal Health Dashboard (AWS Health) and forwards the events to an SNS topic." + is_enabled = var.actions-enabled + event_pattern = <