From 5e42389597b58cb9ff1296d54deb7ffab5b01499 Mon Sep 17 00:00:00 2001 From: Bibek Rauniyar Date: Thu, 13 Jun 2024 14:50:05 +0700 Subject: [PATCH] fix: terratest failure fix | DEVOP-4496 --- modules/google_sql_database_instance/main.tf | 2 +- modules/google_sql_database_instance/variables.tf | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/google_sql_database_instance/main.tf b/modules/google_sql_database_instance/main.tf index 68e289c..c70c06b 100644 --- a/modules/google_sql_database_instance/main.tf +++ b/modules/google_sql_database_instance/main.tf @@ -88,7 +88,7 @@ resource "google_sql_database_instance" "instance" { ip_configuration { #tfsec:ignore:google-sql-encrypt-in-transit-data - require_ssl = var.settings_ip_configuration_require_ssl + ssl_mode = var.settings_ip_configuration_ssl_mode #checkov:skip=CKV_GCP_60:Ensure Cloud SQL database does not have public IP - default value is false #tfsec:ignore:google-sql-no-public-access diff --git a/modules/google_sql_database_instance/variables.tf b/modules/google_sql_database_instance/variables.tf index d0961c2..2410b4d 100644 --- a/modules/google_sql_database_instance/variables.tf +++ b/modules/google_sql_database_instance/variables.tf @@ -132,10 +132,10 @@ variable "settings_backup_configuration_backup_retention_settings_retained_backu default = 7 } -variable "settings_ip_configuration_require_ssl" { +variable "settings_ip_configuration_ssl_mode" { description = "(Optional) Whether SSL connections over IP are enforced or not." - type = bool - default = true + type = map(any) + default = null } variable "settings_ip_configuration_ipv4_enabled" {