Skip to content

Commit 91fd56c

Browse files
committed
[PRMP-1446] Add healthcare worker API URL to user restriction lambda environment
Signed-off-by: NogaNHS <127490765+NogaNHS@users.noreply.github.com>
1 parent e3d1a60 commit 91fd56c

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

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 = [

infrastructure/ssm_parameters_user_restrictions.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ module "healthcare_worker_api_base_url" {
1010
ignore_value_changes = true
1111
}
1212

13+
data "aws_ssm_parameter" "healthcare_worker_api_base_url" {
14+
name = "/ndr/${var.shared_infra_workspace}/hcw_api_url"
15+
}

0 commit comments

Comments
 (0)