Skip to content

Commit 28f825c

Browse files
committed
[PRMP-881]Rename document review references to document upload review in Lambda functions
Signed-off-by: NogaNHS <[email protected]>
1 parent 57b6441 commit 28f825c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

infrastructure/lambda-post-document-review.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ module "post_document_review_lambda" {
44
handler = "handlers.post_document_review_handler.lambda_handler"
55
iam_role_policy_documents = [
66
module.ndr-app-config.app_config_policy,
7-
local.is_production ? "" : module.document_review_dynamodb_table[0].dynamodb_write_policy_document,
8-
local.is_production ? "" : module.document_review_dynamodb_table[0].dynamodb_read_policy_document,
7+
module.document_upload_review_dynamodb_table.dynamodb_write_policy_document,
8+
module.document_upload_review_dynamodb_table.dynamodb_read_policy_document,
99
aws_iam_policy.ssm_access_policy.policy,
1010
module.ndr-bulk-staging-store.s3_write_policy_document,
1111
module.cloudfront_edge_dynamodb_table.dynamodb_write_policy_document,
@@ -22,7 +22,7 @@ module "post_document_review_lambda" {
2222
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
2323
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
2424
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
25-
DOCUMENT_REVIEW_DYNAMODB_NAME = local.is_production ? "" : module.document_review_dynamodb_table[0].table_name
25+
DOCUMENT_REVIEW_DYNAMODB_NAME = module.document_upload_review_dynamodb_table.table_name
2626
PRESIGNED_ASSUME_ROLE = aws_iam_role.post_document_review_presign.arn
2727
WORKSPACE = terraform.workspace
2828
STAGING_STORE_BUCKET_NAME = module.ndr-bulk-staging-store.bucket_id

infrastructure/lambda-review-document-status.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module "review-document-status-check-lambda" {
55
iam_role_policy_documents = [
66
module.ndr-app-config.app_config_policy,
77
aws_iam_policy.ssm_access_policy.policy,
8-
local.is_production ? "" : module.document_review_dynamodb_table[0].dynamodb_read_policy_document
8+
module.document_upload_review_dynamodb_table.dynamodb_read_policy_document,
99
]
1010
kms_deletion_window = var.kms_deletion_window
1111
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
@@ -16,7 +16,7 @@ module "review-document-status-check-lambda" {
1616
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
1717
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
1818
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
19-
DOCUMENT_REVIEW_DYNAMODB_NAME = local.is_production ? "" : module.document_review_dynamodb_table[0].table_name
19+
DOCUMENT_REVIEW_DYNAMODB_NAME = module.document_upload_review_dynamodb_table.table_name
2020
DOCUMENT_REVIEW_S3_BUCKET_NAME = module.ndr-document-pending-review-store.bucket_id
2121
WORKSPACE = terraform.workspace
2222
}

0 commit comments

Comments
 (0)