File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
infrastructure/terraform/modules/backend-api Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module "request_proof_lambda" {
1616 environment_variables = local. backend_lambda_environment_variables
1717
1818 execution_role_policy_document = data. aws_iam_policy_document . request_proof_lambda_policy . json
19- log_destination_arn = var. log_destination_arn
19+ log_destination_arn = var. log_destination_arn
2020 log_subscription_role_arn = var. log_subscription_role_arn
2121}
2222
@@ -48,7 +48,7 @@ data "aws_iam_policy_document" "request_proof_lambda_policy" {
4848 }
4949
5050 statement {
51- sid = " AllowKMSAccess "
51+ sid = " AllowDdbKMSAccess "
5252 effect = " Allow"
5353
5454 actions = [
@@ -63,4 +63,18 @@ data "aws_iam_policy_document" "request_proof_lambda_policy" {
6363 local . dynamodb_kms_key_arn
6464 ]
6565 }
66+
67+ statement {
68+ sid = " AllowSqsKMSAccess"
69+ effect = " Allow"
70+
71+ actions = [
72+ " kms:Decrypt" ,
73+ " kms:GenerateDataKey" ,
74+ ]
75+
76+ resources = [
77+ var . kms_key_arn ,
78+ ]
79+ }
6680}
You can’t perform that action at this time.
0 commit comments