From 5c001fa58baea4b88e926fd0f0d400d2e8dcbd54 Mon Sep 17 00:00:00 2001 From: Flamarion Jorge <29267749+flamarion@users.noreply.github.com> Date: Wed, 1 Mar 2023 16:58:09 +0100 Subject: [PATCH] fix: Add back the default mysql version (#54) * fix: Add back the default mysql version * terraform-docs: automated action --------- Co-authored-by: github-actions[bot] --- README.md | 2 +- modules/database/variables.tf | 1 + variables.tf | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 43f6426d..6e05220d 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ No resources. | [create\_redis](#input\_create\_redis) | Boolean indicating whether to provision an redis instance (true) or not (false). | `bool` | `false` | no | | [database\_machine\_type](#input\_database\_machine\_type) | Specifies the machine type to be allocated for the database | `string` | `"db-n1-standard-2"` | no | | [database\_sort\_buffer\_size](#input\_database\_sort\_buffer\_size) | Specifies the sort\_buffer\_size value to set for the database | `number` | `262144` | no | -| [database\_version](#input\_database\_version) | Version for MySQL | `string` | n/a | yes | +| [database\_version](#input\_database\_version) | Version for MySQL | `string` | `"MYSQL_8_0_29"` | no | | [deletion\_protection](#input\_deletion\_protection) | If the instance should have deletion protection enabled. The database / Bucket can't be deleted when this value is set to `true`. | `bool` | `true` | no | | [disable\_code\_saving](#input\_disable\_code\_saving) | Boolean indicating if code saving is disabled | `bool` | `false` | no | | [domain\_name](#input\_domain\_name) | Domain for accessing the Weights & Biases UI. | `string` | `null` | no | diff --git a/modules/database/variables.tf b/modules/database/variables.tf index 78e2a621..62039202 100644 --- a/modules/database/variables.tf +++ b/modules/database/variables.tf @@ -57,6 +57,7 @@ variable "labels" { variable "database_version" { description = "Version for MySQL" type = string + default = "MYSQL_8_0_29" validation { condition = regex("^MYSQL_(8_0(_[0-9]*)?|5_7)$", var.database_version) diff --git a/variables.tf b/variables.tf index ce2a877c..ab983689 100644 --- a/variables.tf +++ b/variables.tf @@ -131,6 +131,7 @@ variable "ssl" { variable "database_version" { description = "Version for MySQL" type = string + default = "MYSQL_8_0_29" } variable "database_machine_type" {