Skip to content

Commit cae3e74

Browse files
authored
fix: Dispatcher kms permission role mismatch (#4547)
1 parent b4fdc03 commit cae3e74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/webhook/eventbridge/dispatcher.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ resource "aws_iam_role_policy" "dispatcher_sqs" {
117117

118118
resource "aws_iam_role_policy" "dispatcher_kms" {
119119
name = "kms-policy"
120-
role = aws_iam_role.webhook_lambda.name
120+
role = aws_iam_role.dispatcher_lambda.name
121121

122122
policy = templatefile("${path.module}/../policies/lambda-kms.json", {
123123
kms_key_arn = var.config.kms_key_arn != null ? var.config.kms_key_arn : "arn:${var.config.aws_partition}:kms:::CMK_NOT_IN_USE"

0 commit comments

Comments
 (0)