From 7b02569468142ee054441ccaeaad9a196da74bb6 Mon Sep 17 00:00:00 2001 From: Aurel Canciu Date: Mon, 4 Mar 2024 16:10:28 +0100 Subject: [PATCH] fix: Allow managing `allocated_storage` for replicas (#534) fix: Allow managing allocated_storage for replicas A regression was introduced via c66cd738 where allocated_storage can only be set on primary instances. However, this should not be a limitation because RDS does allow managing replica storage independently from the primary. Co-authored-by: Bryant Biggs --- modules/db_instance/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/db_instance/main.tf b/modules/db_instance/main.tf index 2ffcff0b..325d82cb 100644 --- a/modules/db_instance/main.tf +++ b/modules/db_instance/main.tf @@ -35,7 +35,7 @@ resource "aws_db_instance" "this" { engine = local.is_replica ? null : var.engine engine_version = var.engine_version instance_class = var.instance_class - allocated_storage = local.is_replica ? null : var.allocated_storage + allocated_storage = var.allocated_storage storage_type = var.storage_type storage_encrypted = var.storage_encrypted kms_key_id = var.kms_key_id