From 66a71ffa9eeee98d36ed9e7d11d9dd071f672369 Mon Sep 17 00:00:00 2001 From: NogaNHS <127490765+NogaNHS@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:07:51 +0000 Subject: [PATCH] [PRMP-1446] Add user restriction table to Lambda search patient configuration Signed-off-by: NogaNHS <127490765+NogaNHS@users.noreply.github.com> --- infrastructure/lambda-search-patient.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infrastructure/lambda-search-patient.tf b/infrastructure/lambda-search-patient.tf index 5a7e6213..a19b0005 100644 --- a/infrastructure/lambda-search-patient.tf +++ b/infrastructure/lambda-search-patient.tf @@ -60,6 +60,7 @@ module "search-patient-details-lambda" { module.ndr-app-config.app_config_policy, module.auth_session_dynamodb_table.dynamodb_write_policy_document, module.auth_session_dynamodb_table.dynamodb_read_policy_document, + module.user_restriction_table.dynamodb_read_policy_document, ] kms_deletion_window = var.kms_deletion_window rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id @@ -73,6 +74,7 @@ module "search-patient-details-lambda" { PDS_FHIR_IS_STUBBED = local.is_sandbox, WORKSPACE = terraform.workspace AUTH_SESSION_TABLE_NAME = "${terraform.workspace}_${var.auth_session_dynamodb_table_name}" + RESTRICTIONS_TABLE_NAME = module.user_restriction_table.table_name } api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn depends_on = [