db-group

iqz-systems/db-group/postgresql

Terraform Module HCL POSTGRESQL

Terraform module to create a bunch of databases in a database instance with common username and password.

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

terraform-postgresql-db-group Terraform module to create a set of databases with the same username and password using the postgresql provider. 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_dbs" { source = "iqz-systems/db-group/postgresql" version = "2.0.3" username = "app_db_user" db_names = ["app_db1", "app_db2"] password_length = 32 } ` Variables - db_names set(string) - The names of databases 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_names list(string) - A set containing all names of the databases. - db_username string - The

Inputs (3)
NameTypeDescriptionDefault
usernamestringThe database username to be created. required
db_namesset(string)The names of databases to be created. required
password_lengthnumberThe length of the password to be created.64
Outputs (3)
db_names — A set containing all names of the databases.
db_username — The username using which the database can be accessed.
db_password — The password associated with the user for the databases.
Resources (4)
postgresql_databasepostgresql_grantpostgresql_rolerandom_password
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.3
Cloud POSTGRESQL
Total downloads726
Inputs3
Outputs3
Resources4
Namespaceiqz-systems
Updated