Skip to content

Commit

Permalink
add ssl_mode given deprecation of require_ssl (#1152)
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Callaway <[email protected]>
  • Loading branch information
bobcallaway authored Jun 25, 2024
1 parent 0c046ff commit 0f6854b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform/gcp/modules/mysql-shard/mysql.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ resource "google_sql_database_instance" "trillian" {
ipv4_enabled = var.ipv4_enabled
private_network = var.network
require_ssl = var.require_ssl
ssl_mode = var.require_ssl ? "TRUSTED_CLIENT_CERTIFICATE_REQUIRED" : "SSL_MODE_UNSPECIFIED"
}

database_flags {
Expand Down Expand Up @@ -80,6 +81,7 @@ resource "google_sql_database_instance" "read_replica" {
ipv4_enabled = var.ipv4_enabled
private_network = var.network
require_ssl = var.require_ssl
ssl_mode = var.require_ssl ? "TRUSTED_CLIENT_CERTIFICATE_REQUIRED" : "SSL_MODE_UNSPECIFIED"
}

database_flags {
Expand Down
2 changes: 2 additions & 0 deletions terraform/gcp/modules/mysql/mysql.tf
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ resource "google_sql_database_instance" "sigstore" {
ipv4_enabled = var.ipv4_enabled
private_network = var.network
require_ssl = var.require_ssl
ssl_mode = var.require_ssl ? "TRUSTED_CLIENT_CERTIFICATE_REQUIRED" : "SSL_MODE_UNSPECIFIED"
}

database_flags {
Expand Down Expand Up @@ -173,6 +174,7 @@ resource "google_sql_database_instance" "read_replica" {
ipv4_enabled = var.ipv4_enabled
private_network = var.network
require_ssl = var.require_ssl
ssl_mode = var.require_ssl ? "TRUSTED_CLIENT_CERTIFICATE_REQUIRED" : "SSL_MODE_UNSPECIFIED"
}

database_flags {
Expand Down

0 comments on commit 0f6854b

Please sign in to comment.