Skip to content

Commit

Permalink
fix: Allow managing allocated_storage for replicas
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
relu committed Feb 15, 2024
1 parent 40e5971 commit 496da22
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 496da22

Please sign in to comment.