Skip to content

cloud-labs-infra/terraform-postgresql-database

Repository files navigation

Postgresql database

Requirements

Name Version
terraform ~> 1.7
postgresql ~>1.19
random ~>3.5

Providers

Name Version
postgresql ~>1.19
random ~>3.5

Modules

No modules.

Resources

Name Type
postgresql_database.main resource
postgresql_grant.database resource
postgresql_role.role resource
random_password.password resource

Inputs

Name Description Type Default Required
allow_connections If false then no one can connect to this database bool true no
connection_limit How many concurrent connections can be established to this database number -1 no
encoding Character set encoding to use in the database string "UTF8" no
lc_collate Collation order LC_COLLATE to use in the database string "C" no
lc_ctype Character classification LC_CTYPE to use in the database string "C" no
make_owner Set role as an owner of database bool false no
name The name of the database string n/a yes
password Owner role's password parameters
object({
length = optional(number, 20)
special = optional(bool, false)
min_numeric = optional(number, 2)
min_lower = optional(number, 2)
})
{} no
privileges The list of privileges to grant role for the database list(string)
[
"CONNECT",
"CREATE",
"TEMPORARY"
]
no
role The name of the role, default - name of database string null no

Outputs

Name Description
name Database name
role_name Role name
role_password Role password

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages