Skip to content

Commit e5089d0

Browse files
authored
Limit principal to account id (#76)
1 parent ccc3c35 commit e5089d0

File tree

1 file changed

+1
-1
lines changed
  • modules/infrastructure/cloudtrail

1 file changed

+1
-1
lines changed

modules/infrastructure/cloudtrail/kms.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ data "aws_iam_policy_document" "cloudtrail_kms" {
2121
effect = "Allow"
2222
principals {
2323
# identifiers = ["arn:aws:iam::${data.aws_caller_identity.me.account_id}:root"]
24-
identifiers = ["*"]
24+
identifiers = [data.aws_caller_identity.me.account_id]
2525
type = "AWS"
2626
}
2727
actions = ["kms:*"]

0 commit comments

Comments
 (0)