Skip to content

Commit 997135d

Browse files
[PRMP-579] add permissions to lambda
1 parent 7b96cb5 commit 997135d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

infrastructure/lambda-document-review-processor.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ module "document_review_processor_lambda" {
55
iam_role_policy_documents = [
66
module.document_review_queue.sqs_read_policy_document,
77
module.document_review_queue.sqs_write_policy_document,
8+
module.ndr-document-pending-review-store.s3_write_policy_document,
9+
module.document_review_dynamodb_table.dynamodb_write_policy_document
810
]
911
kms_deletion_window = var.kms_deletion_window
1012
is_gateway_integration_needed = false
@@ -13,11 +15,10 @@ module "document_review_processor_lambda" {
1315
api_execution_arn = null
1416
lambda_timeout = 900
1517
lambda_environment_variables = {
16-
DOCUMENT_REVIEW_BUCKET_NAME = "${terraform.workspace}-placeholder-document-review-bucket"
17-
DOCUMENT_REVIEW_TABLE_NAME = "${terraform.workspace}_placeholder_document_review_table"
18+
DOCUMENT_REVIEW_BUCKET_NAME = module.ndr-document-pending-review-store.bucket_id
19+
DOCUMENT_REVIEW_TABLE_NAME = module.document_review_dynamodb_table.table_name
1820
WORKSPACE = terraform.workspace
1921
}
20-
depends_on = []
2122
}
2223

2324

0 commit comments

Comments
 (0)