From 6c963115a4826ddd88742a8ba8826a22a820617d Mon Sep 17 00:00:00 2001 From: Edward Malinowski Date: Wed, 20 Jul 2022 07:41:54 -0500 Subject: [PATCH] fix(secondary-subnet): Added route table associates for all of the new subnets --- tf_files/aws/modules/eks/cloud.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tf_files/aws/modules/eks/cloud.tf b/tf_files/aws/modules/eks/cloud.tf index c1a582dfe..7d313f0fb 100644 --- a/tf_files/aws/modules/eks/cloud.tf +++ b/tf_files/aws/modules/eks/cloud.tf @@ -252,7 +252,7 @@ resource "aws_route_table_association" "private_kube" { } resource "aws_route_table_association" "secondary_subnet_kube" { - count = "${var.secondary_cidr_block != "" ? 1 : 0}" + count = "${var.secondary_cidr_block != "" ? 4 : 0}" subnet_id = "${aws_subnet.eks_secondary_subnet.*.id[count.index]}" route_table_id = "${aws_route_table.eks_private.id}" depends_on = ["aws_subnet.eks_secondary_subnet"]