From 407321cc73ed93cf3d2e48908a8ca5a64e21a2a7 Mon Sep 17 00:00:00 2001 From: Bob Callaway Date: Thu, 5 Sep 2024 11:09:58 -0400 Subject: [PATCH] add variable to toggle standalone mysql SSL setting Signed-off-by: Bob Callaway --- terraform/gcp/modules/sigstore/sigstore.tf | 2 +- terraform/gcp/modules/sigstore/variables.tf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/terraform/gcp/modules/sigstore/sigstore.tf b/terraform/gcp/modules/sigstore/sigstore.tf index 97c68850f..f44525b7c 100644 --- a/terraform/gcp/modules/sigstore/sigstore.tf +++ b/terraform/gcp/modules/sigstore/sigstore.tf @@ -417,7 +417,7 @@ module "standalone_mysqls" { db_name = var.mysql_db_name ipv4_enabled = var.mysql_ipv4_enabled - require_ssl = var.mysql_require_ssl + require_ssl = var.standalone_mysql_ssl backup_enabled = var.mysql_backup_enabled binary_log_backup_enabled = var.mysql_binary_log_backup_enabled collation = var.mysql_collation diff --git a/terraform/gcp/modules/sigstore/variables.tf b/terraform/gcp/modules/sigstore/variables.tf index 072cf467c..226777e7f 100644 --- a/terraform/gcp/modules/sigstore/variables.tf +++ b/terraform/gcp/modules/sigstore/variables.tf @@ -357,6 +357,12 @@ variable "standalone_mysql_tier" { default = "db-n1-standard-4" } +variable "standalone_mysql_ssl" { + type = bool + description = "force connections to the database to use SSL" + default = true +} + // Cluster node pool variable "initial_node_count" { type = number