Add ssl certs to cloudsql instance (#1049)
* add ssl certs to cloudsql instance * rename variable * fix typo Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
This commit is contained in:
@@ -175,3 +175,10 @@ resource "google_sql_user" "users" {
|
||||
host = each.value.host
|
||||
password = each.value.password
|
||||
}
|
||||
|
||||
resource "google_sql_ssl_cert" "postgres_client_certificates" {
|
||||
for_each = var.postgres_client_certificates != null ? toset(var.postgres_client_certificates) : toset([])
|
||||
provider = google-beta
|
||||
instance = google_sql_database_instance.primary.name
|
||||
common_name = each.key
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user