Skip to content

Commit

Permalink
fix(secondary-subnet): Added route table associates for all of the ne…
Browse files Browse the repository at this point in the history
…w subnets (#1999)

Co-authored-by: Edward Malinowski <[email protected]>
Co-authored-by: jawadqur <[email protected]>
  • Loading branch information
3 people authored May 20, 2024
1 parent 562efa3 commit aae26ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tf_files/aws/modules/eks/cloud.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit aae26ac

Please sign in to comment.