We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b741642 commit 5facf6aCopy full SHA for 5facf6a
modules/postgresql/main.tf
@@ -172,7 +172,7 @@ resource "google_sql_user" "additional_users" {
172
for_each = local.users
173
project = var.project_id
174
name = each.value.name
175
- password = lookup(each.value, "password", random_id.user-password.hex)
+ password = coalesce(each.value["password"], random_id.user-password.hex)
176
instance = google_sql_database_instance.default.name
177
depends_on = [null_resource.module_depends_on, google_sql_database_instance.default]
178
}
0 commit comments