Fixes and additional support for ssl_mode for CloudSQL module (#2002)

* added ssl mode, ignore password change and maintenance fix

* validation - ssl mode can be null

* removed ignore password

* readme update

* added moved, shortened ssl_mode desc

* order fix

* fmt

* created ssl variable

* handle exceptions

* removed null from optional

* change ssl from null to empty object

* output ordered alphabetically

* readme update

* default value of require_ssl
This commit is contained in:
Amela Spica
2024-01-25 16:29:07 +01:00
committed by GitHub
parent 6d9b6403dd
commit 1a8400e60e
4 changed files with 104 additions and 39 deletions

View File

@@ -21,6 +21,12 @@ locals {
)
}
output "client_certificates" {
description = "The CA Certificate used to connect to the SQL Instance via SSL."
value = google_sql_ssl_cert.client_certificates
sensitive = true
}
output "connection_name" {
description = "Connection name of the primary instance."
value = google_sql_database_instance.primary.connection_name
@@ -92,12 +98,6 @@ output "names" {
}
}
output "postgres_client_certificates" {
description = "The CA Certificate used to connect to the SQL Instance via SSL."
value = google_sql_ssl_cert.postgres_client_certificates
sensitive = true
}
output "psc_service_attachment_link" {
description = "The link to service attachment of PSC instance."
value = google_sql_database_instance.primary.psc_service_attachment_link