Skip to content

Support granting permissions on schema #12

Closed
@paul-pop

Description

@paul-pop

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions