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

@@ -298,8 +298,10 @@ variable "time_zone" {
variable "users" {
description = "Map of users to create in the primary instance (and replicated to other replicas). For MySQL, anything after the first `@` (if present) will be used as the user's host. Set PASSWORD to null if you want to get an autogenerated password. The user types available are: 'BUILT_IN', 'CLOUD_IAM_USER' or 'CLOUD_IAM_SERVICE_ACCOUNT'."
type = map(object({
password = optional(string)
type = optional(string)
password = optional(string)
password_version = optional(number)
type = optional(string, "BUILT_IN")
}))
default = null
default = {}
nullable = false
}