Skip to content

Commit

Permalink
fix: reserved instances, aurora rds specifics
Browse files Browse the repository at this point in the history
  • Loading branch information
oycyc committed Dec 16, 2024
1 parent 4373b2b commit 51aa35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ data "aws_rds_reserved_instance_offering" "default" {
count = local.use_reserved_instances ? 1 : 0
db_instance_class = var.instance_type
duration = var.rds_ri_duration
multi_az = local.cluster_instance_count > 1
multi_az = startswith(local.reserved_instance_engine, "aurora") ? false : local.cluster_instance_count > 1 # Aurora options never available for multi AZ for Reserved Instances. Single Reserved Instances rates still apply. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithReservedDBInstances.html
offering_type = var.rds_ri_offering_type
product_description = local.reserved_instance_engine
}
Expand Down

0 comments on commit 51aa35b

Please sign in to comment.