Skip to content

Commit

Permalink
adds rule for cloudwatch logs encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
Cesar Rodriguez committed Oct 19, 2020
1 parent a8fce5a commit 14fb90e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "logGroupNotEncryptedWithKms",
"file": "logGroupNotEncryptedWithKms.rego",
"template_args": null,
"severity": "HIGH",
"description": "AWS CloudWatch log group is not encrypted with a KMS CMK",
"reference_id": "AWS.CloudWatch.EncryptionandKeyManagement.High.0632",
"category": "Encryption and Key Management",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package accurics

logGroupNotEncryptedWithKms[log_group.id] {
log_group := input.aws_cloudwatch_log_group[_]
not log_group.config.kms_key_id
}

0 comments on commit 14fb90e

Please sign in to comment.