From b6cc5f19418c2893aff24590df9825ec7401b06a Mon Sep 17 00:00:00 2001 From: Nikola Naydenov Date: Thu, 14 Nov 2019 17:16:35 +0000 Subject: [PATCH 1/2] Updating with for suggestions --- infrastructure/idam-preview.tfvars | 2 +- infrastructure/main.tf | 2 +- infrastructure/variables.tf | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infrastructure/idam-preview.tfvars b/infrastructure/idam-preview.tfvars index beb7e765b..834a39635 100644 --- a/infrastructure/idam-preview.tfvars +++ b/infrastructure/idam-preview.tfvars @@ -6,4 +6,4 @@ asp_rg_override = "idam-idam-preview" capacity = 1 -strategic_policies_privateIpsFilterPattern = "" \ No newline at end of file +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 183a633f7..771dd1a4b 100644 --- a/infrastructure/main.tf +++ b/infrastructure/main.tf @@ -62,6 +62,6 @@ module "idam-web-public" { GA_TRACKING_ID = "${var.ga_tracking_id}" - STRATEGIC_POLICIES_PRIVATEIPSFILTERPATTERN = "${var.strategic_policies_privateIpsFilterPattern}" + STRATEGIC_POLICIES_PRIVATEIPSFILTERPATTERN = "${var.vnet_private_ip_pattern}" } } diff --git a/infrastructure/variables.tf b/infrastructure/variables.tf index 7f83ddae3..1129f7967 100644 --- a/infrastructure/variables.tf +++ b/infrastructure/variables.tf @@ -79,7 +79,7 @@ variable vault_name_override { default = "" } -variable "strategic_policies_privateIpsFilterPattern" { - description = "Private IPs Filter Pattern for Policies Evaluation" +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 From 4731a93f606c58e2f3121c6dbb457a925feb2b32 Mon Sep 17 00:00:00 2001 From: Nikola Naydenov Date: Thu, 14 Nov 2019 17:19:34 +0000 Subject: [PATCH 2/2] Need to escape the dot --- infrastructure/idam-preview.tfvars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/idam-preview.tfvars b/infrastructure/idam-preview.tfvars index 834a39635..b7e184517 100644 --- a/infrastructure/idam-preview.tfvars +++ b/infrastructure/idam-preview.tfvars @@ -6,4 +6,4 @@ asp_rg_override = "idam-idam-preview" capacity = 1 -vnet_private_ip_pattern = "10.97\\.\\d+\\.\\d+" \ No newline at end of file +vnet_private_ip_pattern = "10\\.97\\.\\d+\\.\\d+" \ No newline at end of file