Closed
Description
Terraform Version
Terraform v0.13.5
Affected Resource(s)
- postgresql_grant
Terraform Configuration Files
This should be as simple as adding a new object type called schema
so it should look like this:
resource "postgresql_grant" "grant" {
role = "test"
database = "test"
schema = "public"
object_type = "schema"
privileges = ["USAGE", "CREATE"]
}
Which should execute this under the hood:
GRANT USAGE,CREATE ON SCHEMA public TO test;
See https://www.postgresql.org/docs/9.1/sql-grant.html for supported priviledges.
Metadata
Metadata
Assignees
Labels
No labels