Create random passwords only when needed, use write-only attribute for passwords

This commit is contained in:
Wiktor Niesiobędzki
2025-06-05 11:21:57 +00:00
committed by Wiktor Niesiobędzki
parent e6ec5de733
commit aecc4d53b9
4 changed files with 19 additions and 15 deletions

View File

@@ -127,8 +127,10 @@ output "self_links" {
output "user_passwords" {
description = "Map of containing the password of all users created through terraform."
value = {
for name, user in google_sql_user.users :
name => user.password
for k, v in local.users : k => v.password
}
sensitive = true
depends_on = [
google_sql_user.users
]
}