From 9a22208b41f9c6eaf26a3f85f49aa96c896b8973 Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Wed, 25 Feb 2026 16:36:07 +0000 Subject: [PATCH 01/16] [PRMP-1475] add env vars to lambda --- infrastructure/lambda-get-user-information.tf | 10 ++++++---- infrastructure/ssm_parameters_user_restrictions.tf | 3 +++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/infrastructure/lambda-get-user-information.tf b/infrastructure/lambda-get-user-information.tf index b4522288..a899ef5b 100644 --- a/infrastructure/lambda-get-user-information.tf +++ b/infrastructure/lambda-get-user-information.tf @@ -12,10 +12,12 @@ module "get_user_information_lambda" { http_methods = ["GET"] api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn lambda_environment_variables = { - APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id - APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id - APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id - WORKSPACE = terraform.workspace + APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id + APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id + APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id + WORKSPACE = terraform.workspace + USE_MOCK_HEALTHCARE_SERVICE = true + HEALTHCARE_WORKER_API_URL = data.aws_ssm_parameter.healthcare_worker_api_base_url.value } depends_on = [ diff --git a/infrastructure/ssm_parameters_user_restrictions.tf b/infrastructure/ssm_parameters_user_restrictions.tf index 641f985e..4c90cb78 100644 --- a/infrastructure/ssm_parameters_user_restrictions.tf +++ b/infrastructure/ssm_parameters_user_restrictions.tf @@ -10,3 +10,6 @@ module "healthcare_worker_api_base_url" { ignore_value_changes = true } +data "aws_ssm_parameter" "healthcare_worker_api_base_url" { + name = "/ndr/${var.environment}/hcw_api_url" +} \ No newline at end of file From 3c704465133cb87f48f98693fa755ab6e2e77b3e Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Thu, 26 Feb 2026 10:47:55 +0000 Subject: [PATCH 02/16] [PRMP-1475] ammend ssm param name for data object --- infrastructure/ssm_parameters_user_restrictions.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/ssm_parameters_user_restrictions.tf b/infrastructure/ssm_parameters_user_restrictions.tf index 4c90cb78..6b740a91 100644 --- a/infrastructure/ssm_parameters_user_restrictions.tf +++ b/infrastructure/ssm_parameters_user_restrictions.tf @@ -11,5 +11,5 @@ module "healthcare_worker_api_base_url" { } data "aws_ssm_parameter" "healthcare_worker_api_base_url" { - name = "/ndr/${var.environment}/hcw_api_url" + name = local.is_sandbox ? "/ndr/ndr-${var.environment}/hcw_api_url" : "/ndr/${var.environment}/hcw_api_url" } \ No newline at end of file From 6e1fe25e9c067af1afdf3ab10c38ed6be00a36ee Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Thu, 26 Feb 2026 15:45:25 +0000 Subject: [PATCH 03/16] [PRMP-1475] add output to ssm module --- infrastructure/lambda-get-user-information.tf | 2 +- infrastructure/modules/ssm_parameter/outputs.tf | 4 ++++ infrastructure/ssm_parameters_user_restrictions.tf | 4 ---- 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 infrastructure/modules/ssm_parameter/outputs.tf diff --git a/infrastructure/lambda-get-user-information.tf b/infrastructure/lambda-get-user-information.tf index a899ef5b..9e86e310 100644 --- a/infrastructure/lambda-get-user-information.tf +++ b/infrastructure/lambda-get-user-information.tf @@ -17,7 +17,7 @@ module "get_user_information_lambda" { APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id WORKSPACE = terraform.workspace USE_MOCK_HEALTHCARE_SERVICE = true - HEALTHCARE_WORKER_API_URL = data.aws_ssm_parameter.healthcare_worker_api_base_url.value + HEALTHCARE_WORKER_API_URL = module.healthcare_worker_api_base_url.ssm_ignore_change_value } depends_on = [ diff --git a/infrastructure/modules/ssm_parameter/outputs.tf b/infrastructure/modules/ssm_parameter/outputs.tf new file mode 100644 index 00000000..4a627d9c --- /dev/null +++ b/infrastructure/modules/ssm_parameter/outputs.tf @@ -0,0 +1,4 @@ +output "ssm_ignore_change_value" { + value = aws_ssm_parameter.secret_ignore_value_changes.value # The actual value to be outputted + description = "The value of ssm parameter" +} diff --git a/infrastructure/ssm_parameters_user_restrictions.tf b/infrastructure/ssm_parameters_user_restrictions.tf index 6b740a91..ce187418 100644 --- a/infrastructure/ssm_parameters_user_restrictions.tf +++ b/infrastructure/ssm_parameters_user_restrictions.tf @@ -9,7 +9,3 @@ module "healthcare_worker_api_base_url" { value = "REPLACE ME" ignore_value_changes = true } - -data "aws_ssm_parameter" "healthcare_worker_api_base_url" { - name = local.is_sandbox ? "/ndr/ndr-${var.environment}/hcw_api_url" : "/ndr/${var.environment}/hcw_api_url" -} \ No newline at end of file From ba06e0a1e1acbf8c5eb394eca0c92d96680c2558 Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Thu, 26 Feb 2026 15:48:22 +0000 Subject: [PATCH 04/16] [PRMP-1475] add indexing to output --- infrastructure/modules/ssm_parameter/README.md | 4 +++- infrastructure/modules/ssm_parameter/outputs.tf | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/infrastructure/modules/ssm_parameter/README.md b/infrastructure/modules/ssm_parameter/README.md index 26d14297..7f992ea7 100644 --- a/infrastructure/modules/ssm_parameter/README.md +++ b/infrastructure/modules/ssm_parameter/README.md @@ -68,5 +68,7 @@ module "ssm_param" { ## Outputs -No outputs. +| Name | Description | +|------|-------------| +| [ssm\_ignore\_change\_value](#output\_ssm\_ignore\_change\_value) | The value of ssm parameter | diff --git a/infrastructure/modules/ssm_parameter/outputs.tf b/infrastructure/modules/ssm_parameter/outputs.tf index 4a627d9c..194383f7 100644 --- a/infrastructure/modules/ssm_parameter/outputs.tf +++ b/infrastructure/modules/ssm_parameter/outputs.tf @@ -1,4 +1,4 @@ output "ssm_ignore_change_value" { - value = aws_ssm_parameter.secret_ignore_value_changes.value # The actual value to be outputted + value = aws_ssm_parameter.secret_ignore_value_changes[0].value # The actual value to be outputted description = "The value of ssm parameter" } From a3a0d001f96bbb4605dad4263b86968a16127a38 Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Thu, 26 Feb 2026 15:56:39 +0000 Subject: [PATCH 05/16] [PRMP-1475] add index --- infrastructure/lambda-get-user-information.tf | 2 +- infrastructure/modules/ssm_parameter/outputs.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/lambda-get-user-information.tf b/infrastructure/lambda-get-user-information.tf index 9e86e310..427503f5 100644 --- a/infrastructure/lambda-get-user-information.tf +++ b/infrastructure/lambda-get-user-information.tf @@ -17,7 +17,7 @@ module "get_user_information_lambda" { APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id WORKSPACE = terraform.workspace USE_MOCK_HEALTHCARE_SERVICE = true - HEALTHCARE_WORKER_API_URL = module.healthcare_worker_api_base_url.ssm_ignore_change_value + HEALTHCARE_WORKER_API_URL = module.healthcare_worker_api_base_url[0].ssm_ignore_change_value } depends_on = [ diff --git a/infrastructure/modules/ssm_parameter/outputs.tf b/infrastructure/modules/ssm_parameter/outputs.tf index 194383f7..8bb3b71c 100644 --- a/infrastructure/modules/ssm_parameter/outputs.tf +++ b/infrastructure/modules/ssm_parameter/outputs.tf @@ -1,4 +1,4 @@ output "ssm_ignore_change_value" { - value = aws_ssm_parameter.secret_ignore_value_changes[0].value # The actual value to be outputted + value = aws_ssm_parameter.secret_ignore_value_changes[0].value description = "The value of ssm parameter" } From 067c9a4f780941cb2115092521f34fb265254281 Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Thu, 26 Feb 2026 16:08:46 +0000 Subject: [PATCH 06/16] [PRMP-1475] remove index --- infrastructure/modules/ssm_parameter/outputs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/modules/ssm_parameter/outputs.tf b/infrastructure/modules/ssm_parameter/outputs.tf index 8bb3b71c..432d9cbf 100644 --- a/infrastructure/modules/ssm_parameter/outputs.tf +++ b/infrastructure/modules/ssm_parameter/outputs.tf @@ -1,4 +1,4 @@ output "ssm_ignore_change_value" { - value = aws_ssm_parameter.secret_ignore_value_changes[0].value + value = aws_ssm_parameter.secret_ignore_value_changes.value description = "The value of ssm parameter" } From 2a3be3a4556579bc71f41467c2f9d4281a0bfc8f Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Thu, 26 Feb 2026 16:49:40 +0000 Subject: [PATCH 07/16] [PRMP-1475] update output --- infrastructure/modules/ssm_parameter/outputs.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/modules/ssm_parameter/outputs.tf b/infrastructure/modules/ssm_parameter/outputs.tf index 432d9cbf..a0038734 100644 --- a/infrastructure/modules/ssm_parameter/outputs.tf +++ b/infrastructure/modules/ssm_parameter/outputs.tf @@ -1,4 +1,4 @@ -output "ssm_ignore_change_value" { - value = aws_ssm_parameter.secret_ignore_value_changes.value +output "ssm_value" { + value = var.ignore_value_changes ? aws_ssm_parameter.secret_ignore_value_changes[0].value : aws_ssm_parameter.secret[0].value description = "The value of ssm parameter" } From 60bf05636b591d7accb45ac9df1019dbe5197257 Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Thu, 26 Feb 2026 16:51:55 +0000 Subject: [PATCH 08/16] [PRMP-1475] fix unknown attribute --- infrastructure/lambda-get-user-information.tf | 2 +- infrastructure/modules/ssm_parameter/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/lambda-get-user-information.tf b/infrastructure/lambda-get-user-information.tf index 427503f5..825ba287 100644 --- a/infrastructure/lambda-get-user-information.tf +++ b/infrastructure/lambda-get-user-information.tf @@ -17,7 +17,7 @@ module "get_user_information_lambda" { APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id WORKSPACE = terraform.workspace USE_MOCK_HEALTHCARE_SERVICE = true - HEALTHCARE_WORKER_API_URL = module.healthcare_worker_api_base_url[0].ssm_ignore_change_value + HEALTHCARE_WORKER_API_URL = module.healthcare_worker_api_base_url[0].ssm_value } depends_on = [ diff --git a/infrastructure/modules/ssm_parameter/README.md b/infrastructure/modules/ssm_parameter/README.md index 7f992ea7..a6f24008 100644 --- a/infrastructure/modules/ssm_parameter/README.md +++ b/infrastructure/modules/ssm_parameter/README.md @@ -70,5 +70,5 @@ module "ssm_param" { | Name | Description | |------|-------------| -| [ssm\_ignore\_change\_value](#output\_ssm\_ignore\_change\_value) | The value of ssm parameter | +| [ssm\_value](#output\_ssm\_value) | The value of ssm parameter | From 90b30695df38877ec495d3c785b02076189e8a5d Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Fri, 27 Feb 2026 09:59:44 +0000 Subject: [PATCH 09/16] [PRMP-1475] use data object --- infrastructure/lambda-get-user-information.tf | 5 +++-- infrastructure/modules/ssm_parameter/outputs.tf | 4 ---- infrastructure/ssm_parameters_user_restrictions.tf | 4 ++++ 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 infrastructure/modules/ssm_parameter/outputs.tf diff --git a/infrastructure/lambda-get-user-information.tf b/infrastructure/lambda-get-user-information.tf index 825ba287..ef360379 100644 --- a/infrastructure/lambda-get-user-information.tf +++ b/infrastructure/lambda-get-user-information.tf @@ -17,12 +17,13 @@ module "get_user_information_lambda" { APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id WORKSPACE = terraform.workspace USE_MOCK_HEALTHCARE_SERVICE = true - HEALTHCARE_WORKER_API_URL = module.healthcare_worker_api_base_url[0].ssm_value + HEALTHCARE_WORKER_API_URL = data.aws_ssm_parameter.healthcare_work_api_base_url } depends_on = [ aws_api_gateway_rest_api.ndr_doc_store_api, - module.user_restrictions_user_search_gateway + module.user_restrictions_user_search_gateway, + module.healthcare_worker_api_base_url[0] ] } diff --git a/infrastructure/modules/ssm_parameter/outputs.tf b/infrastructure/modules/ssm_parameter/outputs.tf deleted file mode 100644 index a0038734..00000000 --- a/infrastructure/modules/ssm_parameter/outputs.tf +++ /dev/null @@ -1,4 +0,0 @@ -output "ssm_value" { - value = var.ignore_value_changes ? aws_ssm_parameter.secret_ignore_value_changes[0].value : aws_ssm_parameter.secret[0].value - description = "The value of ssm parameter" -} diff --git a/infrastructure/ssm_parameters_user_restrictions.tf b/infrastructure/ssm_parameters_user_restrictions.tf index ce187418..31cf2210 100644 --- a/infrastructure/ssm_parameters_user_restrictions.tf +++ b/infrastructure/ssm_parameters_user_restrictions.tf @@ -9,3 +9,7 @@ module "healthcare_worker_api_base_url" { value = "REPLACE ME" ignore_value_changes = true } + +data "aws_ssm_parameter" "healthcare_work_api_base_url" { + name = local.is_sandbox ? "ndr/ndr-dev/hcw_api_url" : "ndr/${terraform.workspace}/hcw_api_url" +} From 7701cf6a2de7b4d1164ea914ad43bccff6eaf76a Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Fri, 27 Feb 2026 10:02:19 +0000 Subject: [PATCH 10/16] [PRMP-1475] remove dependency --- infrastructure/lambda-get-user-information.tf | 3 +-- infrastructure/modules/ssm_parameter/README.md | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/infrastructure/lambda-get-user-information.tf b/infrastructure/lambda-get-user-information.tf index ef360379..c1780315 100644 --- a/infrastructure/lambda-get-user-information.tf +++ b/infrastructure/lambda-get-user-information.tf @@ -22,8 +22,7 @@ module "get_user_information_lambda" { depends_on = [ aws_api_gateway_rest_api.ndr_doc_store_api, - module.user_restrictions_user_search_gateway, - module.healthcare_worker_api_base_url[0] + module.user_restrictions_user_search_gateway ] } diff --git a/infrastructure/modules/ssm_parameter/README.md b/infrastructure/modules/ssm_parameter/README.md index a6f24008..26d14297 100644 --- a/infrastructure/modules/ssm_parameter/README.md +++ b/infrastructure/modules/ssm_parameter/README.md @@ -68,7 +68,5 @@ module "ssm_param" { ## Outputs -| Name | Description | -|------|-------------| -| [ssm\_value](#output\_ssm\_value) | The value of ssm parameter | +No outputs. From b49e4f20d5884ce2b886d1d820d3da82d3cd5ec6 Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Fri, 27 Feb 2026 10:03:40 +0000 Subject: [PATCH 11/16] [PRMP-1475] amend reading of ssm param --- infrastructure/lambda-get-user-information.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/lambda-get-user-information.tf b/infrastructure/lambda-get-user-information.tf index c1780315..e8fb6cc1 100644 --- a/infrastructure/lambda-get-user-information.tf +++ b/infrastructure/lambda-get-user-information.tf @@ -17,7 +17,7 @@ module "get_user_information_lambda" { APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id WORKSPACE = terraform.workspace USE_MOCK_HEALTHCARE_SERVICE = true - HEALTHCARE_WORKER_API_URL = data.aws_ssm_parameter.healthcare_work_api_base_url + HEALTHCARE_WORKER_API_URL = data.aws_ssm_parameter.healthcare_work_api_base_url.value } depends_on = [ From 5f11e8efd584187d0342a2ee5f08419cbe6d74e5 Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Fri, 27 Feb 2026 10:10:18 +0000 Subject: [PATCH 12/16] [PRMP-1475] amend data obj --- infrastructure/lambda-get-user-information.tf | 2 +- infrastructure/ssm_parameters_user_restrictions.tf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/infrastructure/lambda-get-user-information.tf b/infrastructure/lambda-get-user-information.tf index e8fb6cc1..a899ef5b 100644 --- a/infrastructure/lambda-get-user-information.tf +++ b/infrastructure/lambda-get-user-information.tf @@ -17,7 +17,7 @@ module "get_user_information_lambda" { APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id WORKSPACE = terraform.workspace USE_MOCK_HEALTHCARE_SERVICE = true - HEALTHCARE_WORKER_API_URL = data.aws_ssm_parameter.healthcare_work_api_base_url.value + HEALTHCARE_WORKER_API_URL = data.aws_ssm_parameter.healthcare_worker_api_base_url.value } depends_on = [ diff --git a/infrastructure/ssm_parameters_user_restrictions.tf b/infrastructure/ssm_parameters_user_restrictions.tf index 31cf2210..845a2fc2 100644 --- a/infrastructure/ssm_parameters_user_restrictions.tf +++ b/infrastructure/ssm_parameters_user_restrictions.tf @@ -10,6 +10,6 @@ module "healthcare_worker_api_base_url" { ignore_value_changes = true } -data "aws_ssm_parameter" "healthcare_work_api_base_url" { - name = local.is_sandbox ? "ndr/ndr-dev/hcw_api_url" : "ndr/${terraform.workspace}/hcw_api_url" +data "aws_ssm_parameter" "healthcare_worker_api_base_url" { + name = local.is_sandbox ? "/ndr/ndr-dev/hcw_api_url" : "/ndr/${terraform.workspace}/hcw_api_url" } From ebb347c6b804f230a929dba4df31d73695be3750 Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Tue, 3 Mar 2026 12:06:53 +0000 Subject: [PATCH 13/16] [PRMP-1475] remove env var --- infrastructure/lambda-get-user-information.tf | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/infrastructure/lambda-get-user-information.tf b/infrastructure/lambda-get-user-information.tf index a899ef5b..0f965608 100644 --- a/infrastructure/lambda-get-user-information.tf +++ b/infrastructure/lambda-get-user-information.tf @@ -12,12 +12,11 @@ module "get_user_information_lambda" { http_methods = ["GET"] api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn lambda_environment_variables = { - APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id - APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id - APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id - WORKSPACE = terraform.workspace - USE_MOCK_HEALTHCARE_SERVICE = true - HEALTHCARE_WORKER_API_URL = data.aws_ssm_parameter.healthcare_worker_api_base_url.value + APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id + APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id + APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id + WORKSPACE = terraform.workspace + HEALTHCARE_WORKER_API_URL = data.aws_ssm_parameter.healthcare_worker_api_base_url.value } depends_on = [ From 3c9978f2ff1bcb7bc269ee652b62d04306e3721d Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Tue, 3 Mar 2026 16:21:21 +0000 Subject: [PATCH 14/16] [PRMP-1475] address PR comment --- infrastructure/ssm_parameters_user_restrictions.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/ssm_parameters_user_restrictions.tf b/infrastructure/ssm_parameters_user_restrictions.tf index 845a2fc2..349f17f9 100644 --- a/infrastructure/ssm_parameters_user_restrictions.tf +++ b/infrastructure/ssm_parameters_user_restrictions.tf @@ -11,5 +11,5 @@ module "healthcare_worker_api_base_url" { } data "aws_ssm_parameter" "healthcare_worker_api_base_url" { - name = local.is_sandbox ? "/ndr/ndr-dev/hcw_api_url" : "/ndr/${terraform.workspace}/hcw_api_url" + name = local.is_sandbox ? "/ndr/${var.shared_infra_workspace}/hcw_api_url" : "/ndr/${terraform.workspace}/hcw_api_url" } From 8a14b2b5d172115fa405977c1ea9cdad35014999 Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Wed, 4 Mar 2026 15:28:50 +0000 Subject: [PATCH 15/16] [PRMP-1475] update ssm data object --- infrastructure/ssm_parameters_user_restrictions.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/ssm_parameters_user_restrictions.tf b/infrastructure/ssm_parameters_user_restrictions.tf index 349f17f9..727a74b6 100644 --- a/infrastructure/ssm_parameters_user_restrictions.tf +++ b/infrastructure/ssm_parameters_user_restrictions.tf @@ -11,5 +11,5 @@ module "healthcare_worker_api_base_url" { } data "aws_ssm_parameter" "healthcare_worker_api_base_url" { - name = local.is_sandbox ? "/ndr/${var.shared_infra_workspace}/hcw_api_url" : "/ndr/${terraform.workspace}/hcw_api_url" + name = "/ndr/${var.shared_infra_workspace}/hcw_api_url" } From 2c65f3575479504ed1e85849687ba4e87e9a2324 Mon Sep 17 00:00:00 2001 From: steph-torres-nhs <173282814+steph-torres-nhs@users.noreply.github.com> Date: Thu, 5 Mar 2026 14:48:30 +0000 Subject: [PATCH 16/16] [PRMP-1475] update gateway origin --- infrastructure/gateway-user-restrictions.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infrastructure/gateway-user-restrictions.tf b/infrastructure/gateway-user-restrictions.tf index e8376cf1..c2c04022 100644 --- a/infrastructure/gateway-user-restrictions.tf +++ b/infrastructure/gateway-user-restrictions.tf @@ -7,7 +7,7 @@ module "user_restrictions_gateway" { gateway_path = "UserRestriction" authorizer_id = aws_api_gateway_authorizer.repo_authoriser.id require_credentials = true - origin = contains(["prod"], terraform.workspace) ? "'https://${var.domain}'" : "'https://${terraform.workspace}.${var.domain}'" + origin = local.base_url_with_quotes } module "user_restriction_id_gateway" { @@ -19,7 +19,7 @@ module "user_restriction_id_gateway" { authorization = "CUSTOM" authorizer_id = aws_api_gateway_authorizer.repo_authoriser.id require_credentials = true - origin = contains(["prod"], terraform.workspace) ? "'https://${var.domain}'" : "'https://${terraform.workspace}.${var.domain}'" + origin = local.base_url_with_quotes request_parameters = { "method.request.path.id" = true @@ -35,5 +35,5 @@ module "user_restrictions_user_search_gateway" { authorization = "CUSTOM" authorizer_id = aws_api_gateway_authorizer.repo_authoriser.id require_credentials = true - origin = contains(["prod"], terraform.workspace) ? "'https://${var.domain}'" : "'https://${terraform.workspace}.${var.domain}'" + origin = local.base_url_with_quotes }