From aae26ac3d22a2d6564b92c9f7554dcd5d6402cb4 Mon Sep 17 00:00:00 2001 From: emalinowski Date: Mon, 20 May 2024 12:57:47 -0600 Subject: [PATCH] fix(secondary-subnet): Added route table associates for all of the new subnets (#1999) Co-authored-by: Edward Malinowski Co-authored-by: jawadqur <55899496+jawadqur@users.noreply.github.com> --- 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 f8b237eeb..693462b1c 100644 --- a/tf_files/aws/modules/eks/cloud.tf +++ b/tf_files/aws/modules/eks/cloud.tf @@ -254,7 +254,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"]