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

@@ -47,3 +47,9 @@ resource "postgresql_role" "role" {
login = true
password = data.kubernetes_secret_v1.password_role_get[count.index].data["POSGRESQL_PASSWORD"]
}
resource "postgresql_grant_role" "anomynous" {
count = var.extentions.postgrest.enable?1:0
role = "${var.instance}"
grant_role = "anomynous"
}