Skip to content

Commit

Permalink
added encryption to log group
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed Nov 10, 2023
1 parent b7020c0 commit 74d6c35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloudwatch.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
resource "aws_cloudwatch_log_group" "slow_log" {

Check failure on line 1 in cloudwatch.tf

View workflow job for this annotation

GitHub Actions / scan

CKV_AWS_338: "Ensure CloudWatch log groups retains logs for at least 1 year"
name = "/elasticache/${aws_elasticache_replication_group.app4.replication_group_id}/slow-log"
retention_in_days = 30
kms_key_id = aws_kms_key.encrytion_rest.id
}
resource "aws_cloudwatch_log_group" "engine_log" {

Check failure on line 6 in cloudwatch.tf

View workflow job for this annotation

GitHub Actions / scan

CKV_AWS_338: "Ensure CloudWatch log groups retains logs for at least 1 year"
name = "/elasticache/${aws_elasticache_replication_group.app4.replication_group_id}/engine-log"
retention_in_days = 30
kms_key_id = aws_kms_key.encrytion_rest.id
}

0 comments on commit 74d6c35

Please sign in to comment.