Skip to content

Commit f067555

Browse files
kms policies attachment to lambda
1 parent 45a3a66 commit f067555

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

infrastructure/stacks/api-layer/iam_policies.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,13 @@ data "aws_iam_policy_document" "dynamodb_kms_key_policy" {
150150
type = "AWS"
151151
identifiers = [aws_iam_role.eligibility_lambda_role.arn]
152152
}
153-
actions = ["kms:Decrypt"]
153+
actions = [
154+
"kms:Encrypt",
155+
"kms:Decrypt",
156+
"kms:ReEncrypt*",
157+
"kms:GenerateDataKey*",
158+
"kms:DescribeKey"
159+
]
154160
resources = ["*"]
155161
}
156162
}

0 commit comments

Comments
 (0)