Skip to content

Commit be81571

Browse files
johncblandiiclaude
andcommitted
fix: remove ViaService condition from KMS alias creation policy
The ViaService condition restricting alias creation to EC2 would prevent Terraform from creating the KMS alias. Keeping only the CallerAccount condition allows principals in the account to create aliases while maintaining proper account scoping. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 60936f9 commit be81571

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/kms.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,6 @@ data "aws_iam_policy_document" "cloudtrail_kms_key_policy" {
9696
variable = "kms:CallerAccount"
9797
values = [local.aws_account_id]
9898
}
99-
condition {
100-
test = "StringEquals"
101-
variable = "kms:ViaService"
102-
values = ["ec2.${var.region}.amazonaws.com"]
103-
}
10499
}
105100
}
106101

0 commit comments

Comments
 (0)