This commit is contained in:
2023-10-23 15:49:30 +02:00
parent 338fb323c5
commit 3b9089367d
3 changed files with 42 additions and 31 deletions

View File

@@ -64,6 +64,11 @@ resource "postgresql_role" "owner" {
name = "${local.sorted-dbs[count.index].name}"
login = true
password = data.kubernetes_secret_v1.password_get[count.index].data["POSGRESQL_PASSWORD"]
lifecycle {
ignore_changes = [
roles,
]
}
}
resource "postgresql_database" "my_db" {