new-database

iqz-systems/new-database/postgresql

Terraform Module HCL POSTGRESQL

Terraform module to create a new database using the postgresql provider.

Install
module "new-database" {
source = "iqz-systems/new-database/postgresql"
version = "5.0.0"
}
plain text: /constructs/tfmod-iqz-systems-new-database-postgresql/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-postgresql-new-database Terraform module to create a new database using the postgresql provider. You can use this module to quickly create a database and an associated user for the db. This module makes use of Hashicorp's random provider to generate passwords. Requirements You should configure the postgresql provider in order to use this module. Usage ``hcl module "app_db" { source = "iqz-systems/new-database/postgresql" version = "2.1.0" username = "app_db_user" db_name = "app_db" password_length = 32 } ` Variables - db_name string - The name of the database to be created. - username string - The database username to be created. - password_length number - The length of the password to be created. - Default: 64 Outputs - db_name string - The name of the database. - db_username st

Inputs (4)
NameTypeDescriptionDefault
usernamestringThe database username to be created. required
db_namestringThe name of the database to be created. required
password_lengthnumberThe length of the password to be created.64
schemaslist(object({ name A list of schemas to create in the database with the option to add to search pat[]
Outputs (4)
db_name — The names of the database.
db_username — The username using which the database can be accessed.
db_password — The password associated with the user for the database.
schemas — Created schema objects.
Resources (5)
postgresql_databasepostgresql_grantpostgresql_rolepostgresql_schemarandom_password
Details
FrameworkTerraform Module
LanguageHCL
Version5.0.0
Cloud POSTGRESQL
Total downloads5.9k
Inputs4
Outputs4
Resources5
Namespaceiqz-systems
Updated