Skip to content

Commit

Permalink
fix: empty list in vpc_identifier for asg
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Lefevre <[email protected]>
  • Loading branch information
ArchiFleKs committed Aug 14, 2019
1 parent ad9b549 commit 86db318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/modules/eks/eks-worker-nodes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ resource "aws_autoscaling_group" "eks" {
max_size = var.node-pools[count.index]["max_size"]
min_size = var.node-pools[count.index]["min_size"]
name_prefix = "terraform-eks-${var.cluster-name}-node-pool-${var.node-pools[count.index]["name"]}-"
vpc_zone_identifier = var.node-pools[count.index]["vpc_zone_identifier"] != "" ? var.node-pools[count.index]["vpc_zone_identifier"] : split(
vpc_zone_identifier = var.node-pools[count.index]["vpc_zone_identifier"] != [] ? var.node-pools[count.index]["vpc_zone_identifier"] : split(
",",
var.vpc["create"] ? join(",", aws_subnet.eks-private.*.id) : var.vpc["private_subnets_id"],
)
Expand Down

0 comments on commit 86db318

Please sign in to comment.