feature: grant all on public schema
This commit is contained in:
parent
29137ebb19
commit
af995f5b4c
@ -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"]
|
||||
}
|
5
main.tf
5
main.tf
@ -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" {
|
||||
|
Loading…
Reference in New Issue
Block a user