Skip to content

Commit

Permalink
fix: terratest failure fix | DEVOP-4496
Browse files Browse the repository at this point in the history
  • Loading branch information
bibek4699 committed Jun 13, 2024
1 parent f766c84 commit 5e42389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/google_sql_database_instance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions modules/google_sql_database_instance/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 5e42389

Please sign in to comment.