Skip to content

Commit

Permalink
fix: Allow managing allocated_storage for replicas (#534)
Browse files Browse the repository at this point in the history
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 <bryantbiggs@gmail.com>
  • Loading branch information
relu and bryantbiggs committed Mar 4, 2024
1 parent e64ce07 commit 7b02569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/db_instance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b02569

Please sign in to comment.