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 8dab23f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion modules/google_sql_database_instance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ resource "google_sql_database_instance" "instance" {
}

ip_configuration {
#checkov:skip:CKV_GCP_6:Ensure 'Require SSL for connection' is enabled for Cloud SQL Database - default value is true
#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 8dab23f

Please sign in to comment.