File tree 4 files changed +6
-8
lines changed
postgres_instance_ssl_cert
sqlserver_instance_ssl_cert
4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ resource "google_sql_database_instance" "mysql_instance" {
22
22
settings {
23
23
tier = " db-f1-micro"
24
24
ip_configuration {
25
- require_ssl = " true "
25
+ ssl_mode = " ENCRYPTED_ONLY "
26
26
}
27
27
}
28
28
# 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" {
46
46
settings {
47
47
tier = " db-custom-2-7680"
48
48
ip_configuration {
49
- require_ssl = " true "
49
+ ssl_mode = " ENCRYPTED_ONLY "
50
50
}
51
51
}
52
52
# 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" {
71
71
settings {
72
72
tier = " db-custom-2-7680"
73
73
ip_configuration {
74
- require_ssl = " true "
74
+ ssl_mode = " ENCRYPTED_ONLY "
75
75
}
76
76
}
77
77
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by
Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ resource "google_sql_database_instance" "mysql_instance" {
25
25
# The following SSL enforcement options only allow connections encrypted with SSL/TLS and with
26
26
# valid client certificates. Please check the API reference for other SSL enforcement options:
27
27
# 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"
30
29
}
31
30
}
32
31
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by
Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ resource "google_sql_database_instance" "postgres_instance" {
25
25
# The following SSL enforcement options only allow connections encrypted with SSL/TLS and with
26
26
# valid client certificates. Please check the API reference for other SSL enforcement options:
27
27
# 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"
30
29
}
31
30
}
32
31
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ resource "google_sql_database_instance" "sqlserver_instance" {
23
23
settings {
24
24
tier = " db-custom-2-7680"
25
25
ip_configuration {
26
- require_ssl = " true "
26
+ ssl_mode = " ENCRYPTED_ONLY "
27
27
}
28
28
}
29
29
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by
You can’t perform that action at this time.
0 commit comments