db-group
iqz-systems/db-group/postgresql
Terraform module to create a bunch of databases in a database instance with common username and password.
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
| Name | Type | Description | Default |
|---|---|---|---|
| username | string | The database username to be created. | required |
| db_names | set(string) | The names of databases to be created. | required |
| password_length | number | The length of the password to be created. | 64 |
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.