generated from cds-snc/project-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: send security hub events to sentinel (#74)
Since we can just send from the log_archive account there is no need to forward the events to another eventbridge like we did in the existing Landing Zone Instance.
- Loading branch information
1 parent
e683f1c
commit 54cc0d4
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
resource "aws_cloudwatch_event_rule" "cds_sentinel_securityhub_rule" { | ||
provider = aws.log_archive | ||
name = "cds-sentinel-securityhub-rule" | ||
description = "Capture security hub events" | ||
|
||
event_pattern = <<PATTERN | ||
{ | ||
"source": [ | ||
"aws.securityhub" | ||
], | ||
"detail-type": [ | ||
"Security Hub Findings - Imported" | ||
], | ||
"detail": { | ||
"findings": { | ||
"Severity": [ | ||
"CRITICAL", "HIGH", "MEDIUM", "LOW" | ||
] | ||
} | ||
} | ||
} | ||
PATTERN | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters