Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions terraform/platform/monitoring/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -440,18 +440,20 @@ resource "aws_securityhub_standards_subscription" "aws_foundational" {
depends_on = [aws_securityhub_account.main]
}

# Route Security Hub findings with severity >= MEDIUM to security SNS
# Route Security Hub findings with severity >= HIGH to security SNS.
# MEDIUM findings are too noisy (SSL, logging, tags) — these are covered
# by Config rules and compliance reporter already.
resource "aws_cloudwatch_event_rule" "securityhub_findings" {
name = "${var.project}-securityhub-findings"
description = "Route Security Hub findings (MEDIUM and above) to SNS"
description = "Route Security Hub findings (HIGH and above) to SNS"

event_pattern = jsonencode({
source = ["aws.securityhub"]
detail-type = ["Security Hub Findings - Imported"]
detail = {
findings = {
Severity = {
Label = ["MEDIUM", "HIGH", "CRITICAL"]
Label = ["HIGH", "CRITICAL"]
}
}
}
Expand Down
Loading