This repository contains a Terraform Module that creates a Database and User in an existing AWS RDS Cluster.
It has some pre-requisites:
- You have already got a PostgreSQL service available, know where it is and have ADMIN access to it
Name | Version |
---|---|
terraform | >= 1.4.5 |
aws | >= 4.6.0 |
postgresql | >= 1.15.0 |
Name | Version |
---|---|
postgresql | >= 1.15.0 |
random | n/a |
No modules.
Name | Type |
---|---|
postgresql_database.database | resource |
postgresql_role.role | resource |
random_string.pg_user_password | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
database_name | Name of the Database to create in the AWS RDS Cluster. | string |
null |
no |
pg_admin_password | Administrator/Root password to access your PostgreSQL service. | string |
null |
no |
pg_admin_username | Administrator/Root user to access your PostgreSQL service. | string |
null |
no |
pg_hostname | The hostname where your PostgreSQL service is accessible at. | string |
null |
no |
pg_port | The port where your PostgreSQL service is accessible at. | string |
null |
no |
user_password | Password for the User being created in AWS RDS Cluster. If a password is not supplied, one will be generated. | string |
null |
no |
user_username | Username of User to create in AWS RDS Cluster. | string |
null |
no |
Name | Description |
---|---|
database_name | Name of of the newly created Database. |
user_password | Password assigned to the newly created database user. |
user_username | Username of the newly created database user. |
At the time of writing I work for Sonatype, and it is worth nothing that this is NOT SUPPORTED by Sonatype - it is purely a contribution to the open source community (read: you!).
Remember:
- Use this contribution at the risk tolerance that you have
- Do NOT file Sonatype support tickets related to cheque support in regard to this project
- DO file issues here on GitHub, so that the community can pitch in