diff --git a/modules/net-swp/README.md b/modules/net-swp/README.md index fed778afce..a2cb7d4d72 100644 --- a/modules/net-swp/README.md +++ b/modules/net-swp/README.md @@ -240,21 +240,21 @@ module "secure-web-proxy" { | name | description | type | required | default | |---|---|:---:|:---:|:---:| -| [addresses](variables.tf#L17) | One or more IP addresses to be used for Secure Web Proxy. | list(string) | ✓ | | -| [certificates](variables.tf#L26) | List of certificates to be used for Secure Web Proxy. | list(string) | ✓ | | -| [name](variables.tf#L49) | Name of the Secure Web Proxy resource. | string | ✓ | | -| [network](variables.tf#L54) | Name of the network the Secure Web Proxy is deployed into. | string | ✓ | | -| [project_id](variables.tf#L118) | Project id of the project that holds the network. | string | ✓ | | -| [region](variables.tf#L123) | Region where resources will be created. | string | ✓ | | -| [subnetwork](variables.tf#L149) | Name of the subnetwork the Secure Web Proxy is deployed into. | string | ✓ | | -| [delete_swg_autogen_router_on_destroy](variables.tf#L31) | Delete automatically provisioned Cloud Router on destroy. | bool | | true | -| [description](variables.tf#L37) | Optional description for the created resources. | string | | "Managed by Terraform." | -| [labels](variables.tf#L43) | Resource labels. | map(string) | | {} | -| [policy_rules](variables.tf#L59) | List of policy rule definitions, default to allow action. Available keys: secure_tags, url_lists, custom. URL lists that only have values set will be created. | object({…}) | | {} | -| [ports](variables.tf#L112) | Ports to use for Secure Web Proxy. | list(number) | | [443] | -| [scope](variables.tf#L128) | Scope determines how configuration across multiple Gateway instances are merged. | string | | null | -| [service_attachment](variables.tf#L134) | PSC service attachment configuration. | object({…}) | | null | -| [tls_inspection_config](variables.tf#L154) | TLS inspection configuration. | object({…}) | | {} | +| [certificates](variables.tf#L23) | List of certificates to be used for Secure Web Proxy. | list(string) | ✓ | | +| [name](variables.tf#L46) | Name of the Secure Web Proxy resource. | string | ✓ | | +| [network](variables.tf#L51) | Name of the network the Secure Web Proxy is deployed into. | string | ✓ | | +| [project_id](variables.tf#L115) | Project id of the project that holds the network. | string | ✓ | | +| [region](variables.tf#L120) | Region where resources will be created. | string | ✓ | | +| [subnetwork](variables.tf#L146) | Name of the subnetwork the Secure Web Proxy is deployed into. | string | ✓ | | +| [addresses](variables.tf#L17) | Optional IP addresses to be used for Secure Web Proxy. | list(string) | | null | +| [delete_swg_autogen_router_on_destroy](variables.tf#L28) | Delete automatically provisioned Cloud Router on destroy. | bool | | true | +| [description](variables.tf#L34) | Optional description for the created resources. | string | | "Managed by Terraform." | +| [labels](variables.tf#L40) | Resource labels. | map(string) | | {} | +| [policy_rules](variables.tf#L56) | List of policy rule definitions, default to allow action. Available keys: secure_tags, url_lists, custom. URL lists that only have values set will be created. | object({…}) | | {} | +| [ports](variables.tf#L109) | Ports to use for Secure Web Proxy. | list(number) | | [443] | +| [scope](variables.tf#L125) | Scope determines how configuration across multiple Gateway instances are merged. | string | | null | +| [service_attachment](variables.tf#L131) | PSC service attachment configuration. | object({…}) | | null | +| [tls_inspection_config](variables.tf#L151) | TLS inspection configuration. | object({…}) | | {} | ## Outputs diff --git a/modules/net-swp/variables.tf b/modules/net-swp/variables.tf index 1abf46874d..8a0f2ba452 100644 --- a/modules/net-swp/variables.tf +++ b/modules/net-swp/variables.tf @@ -15,12 +15,9 @@ */ variable "addresses" { - description = "One or more IP addresses to be used for Secure Web Proxy." + description = "Optional IP addresses to be used for Secure Web Proxy." type = list(string) - validation { - condition = length(var.addresses) > 0 - error_message = "Must specify at least one IP address." - } + default = null } variable "certificates" {