diff --git a/modules/cluster/README.md b/modules/cluster/README.md index 221abd4..d27baf3 100644 --- a/modules/cluster/README.md +++ b/modules/cluster/README.md @@ -42,7 +42,7 @@ module "gke_cluster_tabnine" { |------|-------------|------|---------|:--------:| | [create\_tabnine\_storage\_bucket\_im\_bindings](#input\_create\_tabnine\_storage\_bucket\_im\_bindings) | Create Tabnine storage bucket im bindings. Should be set to true only when run by Tabnine team | `bool` | `false` | no | | [db\_master\_zone](#input\_db\_master\_zone) | Database master zone. If not set, will default to first zone | `string` | `null` | no | -| [db\_region](#input\_db\_region) | GCP DB region | `string` | `null` | no | +| [db\_region](#input\_db\_region) | GCP DB region | `string` | `""` | no | | [deny\_all\_egress](#input\_deny\_all\_egress) | Deny all egress traffic | `bool` | `true` | no | | [exclude\_kubernetes\_manifest](#input\_exclude\_kubernetes\_manifest) | Exclude kubernetes manifest installations. This should be off during initial installation | `bool` | `false` | no | | [gke\_master\_authorized\_networks](#input\_gke\_master\_authorized\_networks) | n/a |
list(object({| n/a | yes | diff --git a/modules/cluster/sql_db.tf b/modules/cluster/sql_db.tf index c6dd679..aeac050 100644 --- a/modules/cluster/sql_db.tf +++ b/modules/cluster/sql_db.tf @@ -1,5 +1,5 @@ locals { - db_region = var.db_region ? var.db_region : var.region + db_region = var.db_region != "" ? var.db_region : var.region } module "sql_db" { source = "GoogleCloudPlatform/sql-db/google//modules/postgresql" diff --git a/modules/cluster/vars.tf b/modules/cluster/vars.tf index d4b7bd1..6636cab 100644 --- a/modules/cluster/vars.tf +++ b/modules/cluster/vars.tf @@ -58,7 +58,7 @@ variable "db_master_zone" { variable "db_region" { description = "GCP DB region" type = string - default = null + default = "" } variable "exclude_kubernetes_manifest" {
cidr_block = string,
display_name = string
}))