Skip to content

Commit 1127a9d

Browse files
authored
Merge branch 'main' into PRMP-1465
2 parents 784602e + a8d8ab2 commit 1127a9d

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

infrastructure/lambda-search-patient.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ module "search-patient-details-lambda" {
6060
module.ndr-app-config.app_config_policy,
6161
module.auth_session_dynamodb_table.dynamodb_write_policy_document,
6262
module.auth_session_dynamodb_table.dynamodb_read_policy_document,
63+
module.user_restriction_table.dynamodb_read_policy_document,
6364
]
6465
kms_deletion_window = var.kms_deletion_window
6566
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
@@ -73,6 +74,7 @@ module "search-patient-details-lambda" {
7374
PDS_FHIR_IS_STUBBED = local.is_sandbox,
7475
WORKSPACE = terraform.workspace
7576
AUTH_SESSION_TABLE_NAME = "${terraform.workspace}_${var.auth_session_dynamodb_table_name}"
77+
RESTRICTIONS_TABLE_NAME = module.user_restriction_table.table_name
7678
}
7779
api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn
7880
depends_on = [

infrastructure/lambda-search-user-restriction.tf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ module "search_user_restriction_lambda" {
1313
http_methods = ["GET"]
1414
api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn
1515
lambda_environment_variables = {
16-
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
17-
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
18-
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
19-
WORKSPACE = terraform.workspace
20-
RESTRICTIONS_TABLE_NAME = module.user_restriction_table.table_name
16+
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
17+
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
18+
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
19+
WORKSPACE = terraform.workspace
20+
RESTRICTIONS_TABLE_NAME = module.user_restriction_table.table_name
21+
HEALTHCARE_WORKER_API_URL = data.aws_ssm_parameter.healthcare_worker_api_base_url.value
2122
}
2223

2324
depends_on = [

0 commit comments

Comments
 (0)