From a6640e59594e8d6df7576b13e389822d786d72d9 Mon Sep 17 00:00:00 2001 From: Julio Castillo Date: Wed, 6 Sep 2023 09:57:34 +0200 Subject: [PATCH] Make net-vpc variables nullable --- modules/net-vpc/README.md | 6 +++--- modules/net-vpc/variables.tf | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/net-vpc/README.md b/modules/net-vpc/README.md index 3aaaa2a7..81b9ad37 100644 --- a/modules/net-vpc/README.md +++ b/modules/net-vpc/README.md @@ -546,9 +546,9 @@ module "vpc" { | [subnet_iam_bindings](variables.tf#L173) | Authoritative IAM bindings in {REGION/NAME => {ROLE => {members = [], condition = {}}}}. | map(map(object({…}))) | | {} | | [subnet_iam_bindings_additive](variables.tf#L187) | Individual additive IAM bindings. Keys are arbitrary. | map(object({…})) | | {} | | [subnets](variables.tf#L203) | Subnet configuration. | list(object({…})) | | [] | -| [subnets_proxy_only](variables.tf#L229) | List of proxy-only subnets for Regional HTTPS or Internal HTTPS load balancers. Note: Only one proxy-only subnet for each VPC network in each region can be active. | list(object({…})) | | [] | -| [subnets_psc](variables.tf#L241) | List of subnets for Private Service Connect service producers. | list(object({…})) | | [] | -| [vpc_create](variables.tf#L252) | Create VPC. When set to false, uses a data source to reference existing VPC. | bool | | true | +| [subnets_proxy_only](variables.tf#L230) | List of proxy-only subnets for Regional HTTPS or Internal HTTPS load balancers. Note: Only one proxy-only subnet for each VPC network in each region can be active. | list(object({…})) | | [] | +| [subnets_psc](variables.tf#L243) | List of subnets for Private Service Connect service producers. | list(object({…})) | | [] | +| [vpc_create](variables.tf#L255) | Create VPC. When set to false, uses a data source to reference existing VPC. | bool | | true | ## Outputs diff --git a/modules/net-vpc/variables.tf b/modules/net-vpc/variables.tf index 3837c9b0..d8ca5608 100644 --- a/modules/net-vpc/variables.tf +++ b/modules/net-vpc/variables.tf @@ -223,7 +223,8 @@ variable "subnets" { })) secondary_ip_ranges = optional(map(string)) })) - default = [] + default = [] + nullable = false } variable "subnets_proxy_only" { @@ -235,7 +236,8 @@ variable "subnets_proxy_only" { description = optional(string) active = bool })) - default = [] + default = [] + nullable = false } variable "subnets_psc" { @@ -246,7 +248,8 @@ variable "subnets_psc" { region = string description = optional(string) })) - default = [] + default = [] + nullable = false } variable "vpc_create" {