Skip to content

Commit

Permalink
bug: honor the master_count variable
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-svensson authored and argoyle committed Oct 14, 2021
1 parent 3609d09 commit 287acf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ locals {
private_subnets_enabled = length(var.private_subnet_ids) > 0
node_group_subnet_prefix = local.private_subnets_enabled ? "private-${var.region}" : "utility-${var.region}"
topology = local.private_subnets_enabled ? "private" : "public"
master_subnets_zones = local.private_subnets_enabled ? keys(var.private_subnet_ids) : slice(keys(var.public_subnet_ids), 0, var.master_count)
master_subnets_zones = local.private_subnets_enabled ? slice(keys(var.private_subnet_ids), 0, var.master_count) : slice(keys(var.public_subnet_ids), 0, var.master_count)

secrets = (length(compact([var.docker_config])) > 0) ? [""] : []
}

0 comments on commit 287acf5

Please sign in to comment.