new-database
iqz-systems/new-database/postgresql
Terraform module to create a new database using the postgresql provider.
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
| Name | Type | Description | Default |
|---|---|---|---|
| username | string | The database username to be created. | required |
| db_name | string | The name of the database to be created. | required |
| password_length | number | The length of the password to be created. | 64 |
| schemas | list(object({ name | A list of schemas to create in the database with the option to add to search pat | [] |
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.