Skip to content

Commit 3eab24e

Browse files
authored
fix(cloud_sql): update to ssl_mode (terraform-google-modules#732)
1 parent 1b141ca commit 3eab24e

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

cloud_sql/instance_ssl_cert/main.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ resource "google_sql_database_instance" "mysql_instance" {
2222
settings {
2323
tier = "db-f1-micro"
2424
ip_configuration {
25-
require_ssl = "true"
25+
ssl_mode = "ENCRYPTED_ONLY"
2626
}
2727
}
2828
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by
@@ -46,7 +46,7 @@ resource "google_sql_database_instance" "postgres_instance" {
4646
settings {
4747
tier = "db-custom-2-7680"
4848
ip_configuration {
49-
require_ssl = "true"
49+
ssl_mode = "ENCRYPTED_ONLY"
5050
}
5151
}
5252
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by
@@ -71,7 +71,7 @@ resource "google_sql_database_instance" "sqlserver_instance" {
7171
settings {
7272
tier = "db-custom-2-7680"
7373
ip_configuration {
74-
require_ssl = "true"
74+
ssl_mode = "ENCRYPTED_ONLY"
7575
}
7676
}
7777
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by

cloud_sql/mysql_instance_ssl_cert/main.tf

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ resource "google_sql_database_instance" "mysql_instance" {
2525
# The following SSL enforcement options only allow connections encrypted with SSL/TLS and with
2626
# valid client certificates. Please check the API reference for other SSL enforcement options:
2727
# https://cloud.google.com/sql/docs/postgres/admin-api/rest/v1beta4/instances#ipconfiguration
28-
require_ssl = "true"
29-
ssl_mode = "TRUSTED_CLIENT_CERTIFICATE_REQUIRED"
28+
ssl_mode = "TRUSTED_CLIENT_CERTIFICATE_REQUIRED"
3029
}
3130
}
3231
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by

cloud_sql/postgres_instance_ssl_cert/main.tf

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ resource "google_sql_database_instance" "postgres_instance" {
2525
# The following SSL enforcement options only allow connections encrypted with SSL/TLS and with
2626
# valid client certificates. Please check the API reference for other SSL enforcement options:
2727
# https://cloud.google.com/sql/docs/postgres/admin-api/rest/v1beta4/instances#ipconfiguration
28-
require_ssl = "true"
29-
ssl_mode = "TRUSTED_CLIENT_CERTIFICATE_REQUIRED"
28+
ssl_mode = "TRUSTED_CLIENT_CERTIFICATE_REQUIRED"
3029
}
3130
}
3231
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by

cloud_sql/sqlserver_instance_ssl_cert/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ resource "google_sql_database_instance" "sqlserver_instance" {
2323
settings {
2424
tier = "db-custom-2-7680"
2525
ip_configuration {
26-
require_ssl = "true"
26+
ssl_mode = "ENCRYPTED_ONLY"
2727
}
2828
}
2929
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by

0 commit comments

Comments
 (0)