From 7673592afc1d0a7ae1d17c838d48b9f321bb00a4 Mon Sep 17 00:00:00 2001 From: Manuel Romero Date: Fri, 22 Sep 2023 13:37:46 +0200 Subject: [PATCH] postgres and mysql replicate source parameteres --- databases/aws-rds/main.tf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/databases/aws-rds/main.tf b/databases/aws-rds/main.tf index 270d2cd..10cc15e 100644 --- a/databases/aws-rds/main.tf +++ b/databases/aws-rds/main.tf @@ -185,6 +185,27 @@ module "aurora_rds_instance" { tags = local.tags + instances_parameters = local.is_postgres? [ + { + apply_method = "pending-reboot" + name = "rds.logical_replication" + value = 1 + }, + { + apply_method = "pending-reboot" + name = "max_wal_senders" + value = 10 + }, + { + apply_method = "pending-reboot" + name = "max_replication_slots" + value = 10 + } + ] : local.is_mysql? [{ + name = "binlog_format" + value = "row" + }]: [] + } locals {