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 {