Skip to content

Commit

Permalink
vault cluster min_size make smaller
Browse files Browse the repository at this point in the history
min_size cluster will now be calculated as `(({cluster_size}/3)+1)`
  • Loading branch information
mike2194 committed Nov 11, 2022
1 parent 8869ab6 commit 0880124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/vault-cluster/main.tf
Expand Up @@ -25,7 +25,7 @@ resource "aws_autoscaling_group" "autoscaling_group" {
vpc_zone_identifier = var.subnet_ids

# Use a fixed-size cluster
min_size = floor(var.cluster_size / 3) < 1 ? 1 : floor(var.cluster_size / 3)*3
min_size = floor(var.cluster_size / 3) < 1 ? 1 : floor(var.cluster_size / 3) + 1
max_size = (var.cluster_size * 2) + 1
desired_capacity = var.cluster_size
termination_policies = [var.termination_policies]
Expand Down

0 comments on commit 0880124

Please sign in to comment.