Skip to content

Commit

Permalink
fix(#63): instance_count should be independent of autoscaling_min_cap…
Browse files Browse the repository at this point in the history
…acity (#67)

Co-authored-by: Sumeet Shukla <sumeetshukla@sshukla-Mac-BB.local>
  • Loading branch information
sumeetshk and Sumeet Shukla committed May 22, 2020
1 parent 0fb1a21 commit 4a3dce8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.tf
Expand Up @@ -95,8 +95,7 @@ resource "aws_rds_cluster" "default" {
}

locals {
min_instance_count = var.autoscaling_enabled ? var.autoscaling_min_capacity : var.cluster_size
cluster_instance_count = var.enabled ? local.min_instance_count : 0
cluster_instance_count = var.enabled ? var.cluster_size : 0
}

resource "aws_rds_cluster_instance" "default" {
Expand Down

0 comments on commit 4a3dce8

Please sign in to comment.