Skip to content

Commit

Permalink
[repeat #118]Pass in KMS key for Cloud Watch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ao Zhang committed Oct 31, 2023
1 parent 7da834f commit f931d9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,9 @@ resource "aws_cloudwatch_log_group" "agentless_scan_log_group" {
count = var.regional ? 1 : 0
name = "/ecs/${aws_ecs_cluster.agentless_scan_ecs_cluster[0].name}"
retention_in_days = 14
# the KMS will need to allow the log group to use it.
# See https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/encrypt-log-data-kms.html
kms_key_id = var.secretsmanager_kms_key_id
}

resource "aws_cloudwatch_event_rule" "agentless_scan_event_rule" {
Expand Down

0 comments on commit f931d9f

Please sign in to comment.