Skip to content

Commit 81a165d

Browse files
[PRMP-579] add indexs to review table references
1 parent 7b5e895 commit 81a165d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infrastructure/lambda-document-review-processor.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module "document_review_processor_lambda" {
66
module.document_review_queue.sqs_read_policy_document,
77
module.document_review_queue.sqs_write_policy_document,
88
module.ndr-document-pending-review-store.s3_write_policy_document,
9-
module.document_review_dynamodb_table.dynamodb_write_policy_document
9+
module.document_review_dynamodb_table[0].dynamodb_write_policy_document
1010
]
1111
kms_deletion_window = var.kms_deletion_window
1212
is_gateway_integration_needed = false
@@ -16,7 +16,7 @@ module "document_review_processor_lambda" {
1616
lambda_timeout = 900
1717
lambda_environment_variables = {
1818
DOCUMENT_REVIEW_BUCKET_NAME = module.ndr-document-pending-review-store.bucket_id
19-
DOCUMENT_REVIEW_TABLE_NAME = module.document_review_dynamodb_table.table_name
19+
DOCUMENT_REVIEW_TABLE_NAME = local.is_production ? "" : module.document_review_dynamodb_table[0].table_name
2020
WORKSPACE = terraform.workspace
2121
}
2222
}

0 commit comments

Comments
 (0)