Skip to content

Terraform Module for creating a database inside an existing AWS RDS Cluster

License

Notifications You must be signed in to change notification settings

vendorcorp/terraform-aws-rds-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Module: AWS RDS Database

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

Requirements

Name Version
terraform >= 1.4.5
aws >= 4.6.0
postgresql >= 1.15.0

Providers

Name Version
postgresql >= 1.15.0
random n/a

Modules

No modules.

Resources

Name Type
postgresql_database.database resource
postgresql_role.role resource
random_string.pg_user_password resource

Inputs

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

Outputs

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.

The Fine Print

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

About

Terraform Module for creating a database inside an existing AWS RDS Cluster

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages