From eef6a48876c6119568a2d8839e11e18916610812 Mon Sep 17 00:00:00 2001 From: Julio Diez Date: Thu, 9 Mar 2023 10:22:14 +0100 Subject: [PATCH] Make ip_interfaceX not optional These IP values are optional, if you don't specify a value Google will try to find a free IP address. But this is a bad idea because setting them to 'null' forces a replacement even without any changes to make. --- modules/ncc-spoke-ra/variables.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ncc-spoke-ra/variables.tf b/modules/ncc-spoke-ra/variables.tf index 9db839830..bfdc688a1 100644 --- a/modules/ncc-spoke-ra/variables.tf +++ b/modules/ncc-spoke-ra/variables.tf @@ -60,8 +60,8 @@ variable "router_config" { all_subnets = bool ip_ranges = map(string) # map of descriptions and address ranges })) - ip_interface1 = optional(string) - ip_interface2 = optional(string) + ip_interface1 = string + ip_interface2 = string keepalive = optional(number) peer_asn = number })