From db564e9ad8fdd7d30e07027097dfef1a3e844a71 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 23 Jan 2026 15:03:42 +0000 Subject: [PATCH 1/2] Update dependency hashicorp/terraform to v1.14.3 --- infrastructure/.terraform-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/.terraform-version b/infrastructure/.terraform-version index 01b7568230..4ea8ad87e6 100644 --- a/infrastructure/.terraform-version +++ b/infrastructure/.terraform-version @@ -1 +1 @@ -1.13.3 +1.14.3 From 502215e38956761042fd0a4912db2c88ab210750 Mon Sep 17 00:00:00 2001 From: 52960 <60659747+hmcts-jenkins-cnp[bot]@users.noreply.github.com> Date: Fri, 23 Jan 2026 15:14:50 +0000 Subject: [PATCH 2/2] Updating Terraform Formatting --- infrastructure/api-mgmt-logging.tf | 16 ++++++++-------- infrastructure/main.tf | 10 +++++----- infrastructure/stg.tfvars | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/infrastructure/api-mgmt-logging.tf b/infrastructure/api-mgmt-logging.tf index cf273590a6..32ea19370f 100644 --- a/infrastructure/api-mgmt-logging.tf +++ b/infrastructure/api-mgmt-logging.tf @@ -1,14 +1,14 @@ resource "azurerm_api_management_api_diagnostic" "api_mgmt_logs" { - identifier = "applicationinsights" - resource_group_name = "ss-${var.env}-network-rg" - api_management_name = "sds-api-mgmt-${var.env}" - api_name = module.pre_api[0].name + identifier = "applicationinsights" + resource_group_name = "ss-${var.env}-network-rg" + api_management_name = "sds-api-mgmt-${var.env}" + api_name = module.pre_api[0].name api_management_logger_id = "/subscriptions/${data.azurerm_client_config.current.subscription_id}/resourceGroups/ss-${var.env}-network-rg/providers/Microsoft.ApiManagement/service/sds-api-mgmt-${var.env}/loggers/sds-api-mgmt-${var.env}-logger" - sampling_percentage = 100.0 - always_log_errors = true - log_client_ip = true - verbosity = "verbose" + sampling_percentage = 100.0 + always_log_errors = true + log_client_ip = true + verbosity = "verbose" http_correlation_protocol = "W3C" frontend_request { diff --git a/infrastructure/main.tf b/infrastructure/main.tf index 90ffa1bb5c..8b698f6a03 100644 --- a/infrastructure/main.tf +++ b/infrastructure/main.tf @@ -10,7 +10,7 @@ locals { env_to_deploy = 1 env_long_name = var.env == "sbox" ? "sandbox" : var.env == "stg" ? "staging" : var.env apim_service_url = var.env == "prod" ? "https://pre-api.platform.hmcts.net" : "https://pre-api.${local.env_long_name}.platform.hmcts.net" - api_revision = "136" + api_revision = "136" # Stg allows dev to access it. For all other envs we only allow calls from the same env pre_apim_b2c_dev_client_id = var.pre_apim_b2c_dev_client_id != "" ? var.pre_apim_b2c_dev_client_id : var.pre_apim_b2c_client_id } @@ -184,10 +184,10 @@ module "pre_api_b2c" { } module "pre-api-b2c-mgmt-api-policy" { - source = "git@github.com:hmcts/cnp-module-api-mgmt-api-policy?ref=master" - api_name = module.pre_api_b2c.name - api_mgmt_name = "sds-api-mgmt-${var.env}" - api_mgmt_rg = "ss-${var.env}-network-rg" + source = "git@github.com:hmcts/cnp-module-api-mgmt-api-policy?ref=master" + api_name = module.pre_api_b2c.name + api_mgmt_name = "sds-api-mgmt-${var.env}" + api_mgmt_rg = "ss-${var.env}-network-rg" api_policy_xml_content = < diff --git a/infrastructure/stg.tfvars b/infrastructure/stg.tfvars index cb4a0ecdee..35ccbcf6aa 100644 --- a/infrastructure/stg.tfvars +++ b/infrastructure/stg.tfvars @@ -1,2 +1,2 @@ pre_apim_b2c_dev_client_id = "b79aae69-ed5f-4b1b-aa59-9fbd950639b4" -pre_apim_b2c_client_id = "1085988a-4178-41f0-b391-4d7859e42c00" +pre_apim_b2c_client_id = "1085988a-4178-41f0-b391-4d7859e42c00"