Skip to content

Commit 7b02569

Browse files
relubryantbiggs
andauthored
fix: Allow managing allocated_storage for replicas (#534)
fix: Allow managing allocated_storage for replicas A regression was introduced via c66cd73 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 <[email protected]>
1 parent e64ce07 commit 7b02569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/db_instance/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ resource "aws_db_instance" "this" {
3535
engine = local.is_replica ? null : var.engine
3636
engine_version = var.engine_version
3737
instance_class = var.instance_class
38-
allocated_storage = local.is_replica ? null : var.allocated_storage
38+
allocated_storage = var.allocated_storage
3939
storage_type = var.storage_type
4040
storage_encrypted = var.storage_encrypted
4141
kms_key_id = var.kms_key_id

0 commit comments

Comments
 (0)