Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 3.19 KB

README.md

File metadata and controls

53 lines (42 loc) · 3.19 KB

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