From 1955a611591f2836b12d3b7f58e355fcfc3603ff Mon Sep 17 00:00:00 2001 From: Julio Castillo Date: Thu, 6 Oct 2022 15:48:37 +0200 Subject: [PATCH] Make project shared vpc fields optional --- modules/project/variables.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/project/variables.tf b/modules/project/variables.tf index 30eff53aa..41d3163fa 100644 --- a/modules/project/variables.tf +++ b/modules/project/variables.tf @@ -237,7 +237,7 @@ variable "shared_vpc_host_config" { description = "Configures this project as a Shared VPC host project (mutually exclusive with shared_vpc_service_project)." type = object({ enabled = bool - service_projects = list(string) + service_projects = optional(list(string), []) }) default = null } @@ -247,7 +247,7 @@ variable "shared_vpc_service_config" { # the list of valid service identities is in service-accounts.tf type = object({ host_project = string - service_identity_iam = map(list(string)) + service_identity_iam = optional(map(list(string))) }) default = null }