Giter Site home page Giter Site logo

terraform-aws-rds's Introduction

terraform-aws-rds

Cloud&Cloud made Terraform Module for AWS Provider

module "rds" {
  source         = "yonetimacademy/rds/aws"
  version        = "0.0.1"
  tenant         = var.tenant
  name           = var.name
  environment    = var.environment
  vpc_id         = var.vpc_id
  cidr_block     = var.cidr_block
  subnet_ids     = var.subnet_ids
  encryption     = true # 1
  kms_key_id     = var.rds_key_id[0]
  aurora_cluster = false
  additional_ips = ["10.10.0.0/16", "172.31.0.0/16"] # should be set empty []

  # RDS Configuration (Generic)
  database_name               = "master"
  multi_az                    = false
  port                        = 5432
  instance_type               = "db.t4g.small"
  engine                      = "postgres" # mysql or mariadb
  engine_version              = "14.7"
  maintenance_window          = "sun:02:00-sun:03:00"
  backup_window               = "01:00-02:00"
  backup_retention_period     = 7
  allow_major_version_upgrade = false
  auto_minor_version_upgrade  = false
  deletion_protection         = true
  apply_immediately           = true

  # RDS Configuration (If == Aurora)
  replica_count          = 2 # needed for read replicas managed outside autoscaling.
  replica_autoscaling    = true
  replica_min            = 1
  replica_max            = 15
  target_value           = 50
  scale_in_cooldown      = 300
  scale_out_cooldown     = 300
  aurora_parameter_group = "aurora-postgresql14"

  # RDS Configuration (If =! Aurora)
  allocated_storage     = 20
  max_allocated_storage = 1000
  storage_type          = "gp3"
  storage_throughput    = null
  parameter_group       = "postgres14"
}

Notes

  1. Works better with yonetimacademy-aws-kms module.
  2. Supports RDS and Aurora PostgreSQLs only (yet)..

terraform-aws-rds's People

Contributors

fevzitopcu avatar magicornco avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.