Skip to content

Commit 322779a

Browse files
committed
move kms key to cloudwatch resource
1 parent bf75348 commit 322779a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ resource "aws_iam_role_policy" "main" {
7373
role = aws_iam_role.main.id
7474

7575
policy = data.aws_iam_policy_document.main.json
76-
77-
# set the key, else empty string
78-
kms_key_id = var.cloudwatch_encryption_key_arn
7976
}
8077

8178
#
@@ -106,6 +103,9 @@ resource "aws_cloudwatch_log_group" "main" {
106103
Name = "${local.name}-${var.environment}"
107104
Environment = var.environment
108105
}
106+
107+
# set the key, else empty string
108+
kms_key_id = var.cloudwatch_encryption_key_arn
109109
}
110110

111111
#

0 commit comments

Comments
 (0)