From 13b9d7383f4dc4195e4b69367f02bb89c0e717ad Mon Sep 17 00:00:00 2001 From: nikola-naydenov-hmcts <47384516+nikola-naydenov-hmcts@users.noreply.github.com> Date: Fri, 15 Nov 2019 11:44:51 +0000 Subject: [PATCH] Updating with for suggestions (#273) --- infrastructure/idam-preview.tfvars | 2 ++ infrastructure/main.tf | 2 ++ infrastructure/variables.tf | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/infrastructure/idam-preview.tfvars b/infrastructure/idam-preview.tfvars index b8210e47c..b7e184517 100644 --- a/infrastructure/idam-preview.tfvars +++ b/infrastructure/idam-preview.tfvars @@ -5,3 +5,5 @@ asp_name_override = "idam-idam-preview" asp_rg_override = "idam-idam-preview" capacity = 1 + +vnet_private_ip_pattern = "10\\.97\\.\\d+\\.\\d+" \ No newline at end of file diff --git a/infrastructure/main.tf b/infrastructure/main.tf index 59c15a15c..771dd1a4b 100644 --- a/infrastructure/main.tf +++ b/infrastructure/main.tf @@ -61,5 +61,7 @@ module "idam-web-public" { STRATEGIC_SERVICE_URL = "${local.idam_api_url}" GA_TRACKING_ID = "${var.ga_tracking_id}" + + STRATEGIC_POLICIES_PRIVATEIPSFILTERPATTERN = "${var.vnet_private_ip_pattern}" } } diff --git a/infrastructure/variables.tf b/infrastructure/variables.tf index 8e65b8273..1129f7967 100644 --- a/infrastructure/variables.tf +++ b/infrastructure/variables.tf @@ -77,4 +77,9 @@ variable asp_rg_override { variable vault_name_override { description = "Vault Name" default = "" +} + +variable "vnet_private_ip_pattern" { + description = "Private VNet IP Filter Pattern for Policies Evaluation" + default = "10\\.\\d+\\.\\d+\\.\\d+" } \ No newline at end of file