Skip to content

Commit

Permalink
enable key rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
eesa456 committed Aug 2, 2023
1 parent 4cc6060 commit 3c2e72a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/cloudfront-logs/kms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resource "aws_kms_key" "cloudwatch_logs_key" {
description = "KMS Key for ${var.log_group_name} log group"
deletion_window_in_days = 10
policy = data.aws_iam_policy_document.cloudwatch_logs_key_policy[0].json
enable_key_rotation = true
}

data "aws_iam_policy_document" "cloudwatch_logs_key_policy" {
Expand Down
1 change: 1 addition & 0 deletions modules/opennext-revalidation-queue/kms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ resource "aws_kms_key" "revalidation_queue_key" {
deletion_window_in_days = 10

policy = data.aws_iam_policy_document.revalidation_queue_key_policy[0].json
enable_key_rotation = true
}

data "aws_iam_policy_document" "revalidation_queue_key_policy" {
Expand Down

0 comments on commit 3c2e72a

Please sign in to comment.