Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

CDN

This module configs:

  • PostgreSQL RDS

Usage

Example show how to use it with rds module

module "postgres_rds" {
  source = "github.com/escaletech/terraform-modules/modules/postgres_rds"
  identifier                = "mydb"
  environment               = "staging"
  instance_class            = "db.t3.micro"
  final_snapshot_identifier = "mydb-staging-final"
  allocated_storage         = 100
  availability_zone         = "us-east-1a"
  multi_az                  = false
  tags = {
    Name        = "mydb"
    Owner       = "myteam"
    Environment = "staging"
    Repository  = "https://github.com/myuser/myrepo"
}

Requirements

Name Version
aws ~> 3.0
random ~> 2.3

Providers

Name Version
aws ~> 3.0
random ~> 2.3

Inputs

Name Description Type Default Required
allocated_storage Pre-allocated storage in MB number 100 no
availability_zone Availability zone string "us-east-1c" no
environment Deployment environment string n/a yes
final_snapshot_identifier Final snapshot identifier (for when this database is deleted) string n/a yes
identifier RDS identifier string n/a yes
instance_class RDS instance class string "db.t3.micro" no
tags Map of tags to identify this resource on AWS map
{
"Environment": "add-environment",
"Name": "add-application-name",
"Owner": "add-application-owner",
"Repository": "add-github-repository"
}
no

Outputs

No output.