Skip to content

Commit d4cecd6

Browse files
committed
[PRMP-881] Update IAM policies to use document uploadreview DynamoDB table
Signed-off-by: NogaNHS <[email protected]>
1 parent 00cda57 commit d4cecd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

infrastructure/lambda-document-upload-check.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ module "document_upload_check_lambda" {
1313
module.pdm_dynamodb_table.dynamodb_read_policy_document,
1414
module.pdm_dynamodb_table.dynamodb_write_policy_document,
1515
data.aws_iam_policy.aws_lambda_vpc_access_execution_role.policy,
16-
local.is_production ? "" : module.document_review_dynamodb_table[0].dynamodb_read_policy_document,
17-
local.is_production ? "" : module.document_review_dynamodb_table[0].dynamodb_write_policy_document,
16+
module.document_upload_review_dynamodb_table.dynamodb_read_policy_document,
17+
module.document_upload_review_dynamodb_table.dynamodb_write_policy_document,
1818
module.ndr-document-pending-review-store.s3_write_policy_document,
1919
module.core_dynamodb_table.dynamodb_read_policy_document,
2020
module.core_dynamodb_table.dynamodb_write_policy_document,
@@ -25,7 +25,7 @@ module "document_upload_check_lambda" {
2525
api_execution_arn = null
2626
lambda_environment_variables = {
2727
LLOYD_GEORGE_DYNAMODB_NAME = module.lloyd_george_reference_dynamodb_table.table_name
28-
DOCUMENT_REVIEW_DYNAMODB_NAME = local.is_production ? "" : module.document_review_dynamodb_table[0].table_name
28+
DOCUMENT_REVIEW_DYNAMODB_NAME = module.document_upload_review_dynamodb_table.table_name
2929
PDM_DYNAMODB_NAME = module.pdm_dynamodb_table.table_name
3030
STAGING_STORE_BUCKET_NAME = module.ndr-bulk-staging-store.bucket_id
3131
LLOYD_GEORGE_BUCKET_NAME = module.ndr-lloyd-george-store.bucket_id

0 commit comments

Comments
 (0)