feature: grant all on public schema

This commit is contained in:
RouxAntoine 2023-12-02 22:50:09 +01:00
parent 29137ebb19
commit af995f5b4c
Signed by: antoine
GPG Key ID: 098FB66FC0475E70
2 changed files with 11 additions and 2 deletions

View File

@ -28,3 +28,11 @@ resource "postgresql_grant" "readonly_tables" {
object_type = "database"
privileges = var.privileges
}
resource "postgresql_grant" "grant_all_public_schema" {
database = postgresql_database.database.name
role = postgresql_role.user.name
object_type = "schema"
schema = var.schema
privileges = ["ALL"]
}

View File

@ -68,8 +68,9 @@ module "nextcloud" {
source = "./generic-database"
database_name = "nextcloud"
username = "nextcloud"
collate = "fr_FR.UTF-8"
ctype = "fr_FR.UTF-8"
collate = "fr_FR.utf8"
ctype = "fr_FR.utf8"
privileges = ["CREATE", "CONNECT", "TEMPORARY"]
}
output "ampere_account" {