Skip to content

Latest commit

 

History

History
82 lines (62 loc) · 3.7 KB

README.md

File metadata and controls

82 lines (62 loc) · 3.7 KB

Terraform RDS module

This Terraform module is designed to create and manage FlowFuse-specific Amazon RDS (Relational Database Service) instances.

The module supports the following:

  • Creation of RDS primary and replica instances
  • Creation of dedicated VPS and subnets for the RDS instances
  • Creation of FlowFuse-specific databases

The module also provides several outputs including the database address, name, password, and user.

Usage

  module "rds" {
    source = "git::https://github.com/flowFuse/terraform-aws-flowfuse.git//rds?ref=main"

    namespace = "my-company"
    stage     = "production"

    tags = {
      Environment = "production"
      Project = "my-project"
      terraform = true
    }
  }

Requirements

Name Version
aws ~> 5.48
random ~> 3.6

Providers

Name Version
aws 5.49.0
random 3.6.1

Modules

Name Source Version
primary cloudposse/rds/aws 1.1.2
rds_subnets cloudposse/dynamic-subnets/aws 2.4.2
rds_vpc cloudposse/vpc/aws 2.2.0
replica cloudposse/rds/aws 1.1.0

Resources

Name Type
random_password.database_password resource
aws_availability_zones.this data source
aws_vpc.this data source

Inputs

Name Description Type Default Required
cidr The CIDR block for the RDS VPC string "172.24.124.0/24" no
database_name The name of the database to create string "flowforge" no
database_port The port on which the database accepts connections number 5432 no
database_user The master username for the database. Must be all lowercase string "forge" no
namespace ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique string n/a yes
stage ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release' string n/a yes
tags A map of tags to add to all resources map(string) {} no

Outputs

Name Description
database_address n/a
database_name n/a
database_password n/a
database_user n/a