Opinionated.tf/products/redis/credentials.tf

8 lines
No EOL
163 B
HCL

resource "random_password" "auth" {
length = 16
special = false
}
locals {
auth = var.auth != null ? var.auth : nonsensitive(random_password.auth.result)
}