Skip to content

Commit cb92b8a

Browse files
authored
fix: reserved instances, aurora rds specifics (#249)
1 parent 4373b2b commit cb92b8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ data "aws_rds_reserved_instance_offering" "default" {
100100
count = local.use_reserved_instances ? 1 : 0
101101
db_instance_class = var.instance_type
102102
duration = var.rds_ri_duration
103-
multi_az = local.cluster_instance_count > 1
103+
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
104104
offering_type = var.rds_ri_offering_type
105105
product_description = local.reserved_instance_engine
106106
}

0 commit comments

Comments
 (0)