Skip to content

Commit 5dbd01c

Browse files
committed
kms:decrypt
1 parent 71c442a commit 5dbd01c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

terraform/id_sync_lambda.tf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,15 @@ resource "aws_iam_policy" "id_sync_lambda_kms_access_policy" {
224224
Resource = [
225225
data.aws_kms_key.existing_s3_encryption_key.arn,
226226
]
227-
}
227+
},
228+
{
229+
Effect = "Allow"
230+
Action = [
231+
"kms:Decrypt",
232+
"kms:GenerateDataKey*"
233+
]
234+
Resource = data.aws_kms_key.existing_dynamo_encryption_key.arn
235+
}
228236
]
229237
})
230238
}

0 commit comments

Comments
 (0)