Skip to content

Latest commit

 

History

History
71 lines (59 loc) · 5.33 KB

README.md

File metadata and controls

71 lines (59 loc) · 5.33 KB

RDS Aurora Module

Terraform module which creates Aurora RDS resources with an opinionated configuration targeting Camunda 8.

Usage

Following is a simple example configuration and should be adjusted as required.

See inputs for further configuration options and how they affect the RDS creation.

module "postgresql" {
  source                     = "github.com/camunda/camunda-tf-eks-module/modules/aurora"
  engine_version             = "15.4"
  auto_minor_version_upgrade = false
  cluster_name               = "cluster-name-postgresql"

  username         = "username"
  password         = "password"
  vpc_id           = module.eks_cluster.vpc_id
  subnet_ids       = module.eks_cluster.private_subnet_ids
  cidr_blocks      = concat(module.eks_cluster.private_vpc_cidr_blocks, module.eks_cluster.public_vpc_cidr_blocks)
  instance_class   = "db.t3.medium"
  iam_auth_enabled = true

  depends_on = [module.eks_cluster]
}

Modules

No modules.

Resources

Name Type
aws_db_subnet_group.this resource
aws_kms_key.this resource
aws_rds_cluster.aurora_cluster resource
aws_rds_cluster_instance.aurora_instance resource
aws_security_group.this resource
aws_security_group_rule.allow_egress resource
aws_security_group_rule.allow_ingress resource

Inputs

Name Description Type Default Required
auto_minor_version_upgrade If true, minor engine upgrades will be applied automatically to the DB instance during the maintenance window bool true no
availability_zones Array of availability zones to use for the Aurora cluster list(string)
[
"eu-central-1a",
"eu-central-1b",
"eu-central-1c"
]
no
ca_cert_identifier Specifies the identifier of the CA certificate for the DB instance string "rds-ca-rsa2048-g1" no
cidr_blocks The CIDR blocks to allow acces from and to. list(string) n/a yes
cluster_name Name of the cluster, also used to prefix dependent resources. Format: /[[:lower:][:digit:]-]/ any n/a yes
default_database_name The name for the automatically created database on cluster creation. string "camunda" no
engine The engine type e.g. aurora, aurora-mysql, aurora-postgresql, ... string "aurora-postgresql" no
engine_version The DB engine version for Postgres to use. string "15.4" no
iam_auth_enabled Determines whether IAM auth should be activated for IRSA usage bool false no
iam_roles Allows propagating additional IAM roles to the Aurora cluster to allow e.g. access to S3 list(string) [] no
instance_class The instance type of the Aurora instances string "db.t3.medium" no
num_instances Number of instances string "1" no
password The password for the postgres admin user. Important: secret value! string n/a yes
subnet_ids The subnet IDs to create the cluster in. For easier usage we are passing through the subnet IDs from the AWS EKS Cluster module. list(string) n/a yes
tags Additional tags to add to the resources map {} no
username The username for the postgres admin user. Important: secret value! string n/a yes
vpc_id The VPC ID to create the cluster in. For easier usage we are passing through the VPC ID from the AWS EKS Cluster module. any n/a yes

Outputs

Name Description
aurora_endpoint The endpoint of the Aurora cluster