Skip to content

pressreader/terraform-postgresql-role

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL Role Terraform module

Terraform module which creates Role in PostgreSQL

Usage

module "role" {
  source = "git::https://github.com/pressreader/terraform-postgresql-role.git?ref=v1.0.0"

  name     = "Name of a role"
  password = "Password for the role" # Defaults to null

  superuser       = false # Defaults to false
  create_database = false # Defaults to false
  create_role     = false # Defaults to false
  inherit         = true  # Defaults to true
  login           = true  # Defaults to true
  replication     = false # Defaults to false

  connection_limit = 1000 # Defaults to -1

  roles = ["Name of a role"] # Defaults to []

  # Defaults to []
  grants = [
    {
      description       = "GRANT ALL ON ALL TABLES"
      database          = "Name of database"
      object_type       = "table"
      privileges        = ["ALL"]
      schema            = "public" # Defaults to null
      objects           = []       # Defaults to []
      columns           = []       # Defaults to []
      with_grant_option = false    # Defaults to false
    }
  ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages