From 11e671713325318744cd453eb454250b370115ca Mon Sep 17 00:00:00 2001 From: Israel Herraiz Date: Wed, 23 Nov 2022 15:08:22 +0100 Subject: [PATCH] storage_target is an optional setting --- modules/bigtable-instance/README.md | 2 +- modules/bigtable-instance/variables.tf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/bigtable-instance/README.md b/modules/bigtable-instance/README.md index a9dff83e..cc1180dc 100644 --- a/modules/bigtable-instance/README.md +++ b/modules/bigtable-instance/README.md @@ -98,7 +98,7 @@ module "bigtable-instance" { | [name](variables.tf#L56) | The name of the Cloud Bigtable instance. | string | ✓ | | | [project_id](variables.tf#L67) | Id of the project where datasets will be created. | string | ✓ | | | [zone](variables.tf#L99) | The zone to create the Cloud Bigtable cluster in. | string | ✓ | | -| [autoscaling_config](variables.tf#L17) | Settings for autoscaling of the instance. Only one of autoscaling_config or num_nodes should be set. If both are set, num_nodes is ignored. | object({…}) | | null | +| [autoscaling_config](variables.tf#L17) | Settings for autoscaling of the instance. Only one of autoscaling_config or num_nodes should be set. If both are set, num_nodes is ignored. | object({…}) | | null | | [cluster_id](variables.tf#L28) | The ID of the Cloud Bigtable cluster. | string | | "europe-west1" | | [deletion_protection](variables.tf#L34) | Whether or not to allow Terraform to destroy the instance. Unless this field is set to false in Terraform state, a terraform destroy or terraform apply that would delete the instance will fail. | | | true | | [display_name](variables.tf#L39) | The human-readable display name of the Bigtable instance. | | | null | diff --git a/modules/bigtable-instance/variables.tf b/modules/bigtable-instance/variables.tf index a246ecac..5d41123c 100644 --- a/modules/bigtable-instance/variables.tf +++ b/modules/bigtable-instance/variables.tf @@ -19,8 +19,8 @@ variable "autoscaling_config" { type = object({ min_nodes = number max_nodes = number - cpu_target = number - storage_target = number + cpu_target = number, + storage_target = optional(number, null) }) default = null }