We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53cbaac commit 03b29eaCopy full SHA for 03b29ea
1 file changed
modules/wafv2/main.tf
@@ -215,9 +215,17 @@ data "aws_iam_policy_document" "web_acl_policy_document" {
215
}
216
217
218
+# `tfsec` reported a LOW severity issue in platform-services-observability
219
+# CloudWatch Log Group is not encrypted with a customer-managed key (CMK)
220
+resource "aws_kms_key" "log_group_kms" {
221
+ description = "KMS key for encrypting CloudWatch Logs"
222
+ enable_key_rotation = true
223
+}
224
+
225
# CloudWatch Log Group for WAFv2 Logging
226
resource "aws_cloudwatch_log_group" "web_acl_log" {
227
name = "aws-waf-logs-${var.stage}_${var.region}_${var.service_name}"
228
+ kms_key_id = aws_kms_key.log_group_kms.arn
229
count = var.enabled
230
231
0 commit comments