Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
msampathkumar authored Dec 18, 2023
2 parents 0a13fa8 + 3e9f924 commit 1e7e267
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cloud_sql/postgres_instance_ssl_cert/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@
resource "google_sql_database_instance" "postgres_instance" {
name = "postgres-instance"
region = "asia-northeast1"
database_version = "postgres_14"
database_version = "POSTGRES_14"
settings {
tier = "db-custom-2-7680"
ip_configuration {
# The following SSL enforcement options only allow connections encrypted with SSL/TLS and with
# valid client certificates. Please check the API reference for other SSL enforcement options:
# https://cloud.google.com/sql/docs/postgres/admin-api/rest/v1beta4/instances#ipconfiguration
require_ssl = "true"
ssl_mode = "TRUSTED_CLIENT_CERTIFICATE_REQUIRED"
}
}
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by
Expand Down

0 comments on commit 1e7e267

Please sign in to comment.