From 591c189d0f1da6e758df5a3c87669cfeb355b168 Mon Sep 17 00:00:00 2001 From: Addison Higham Date: Wed, 2 Mar 2022 13:06:55 -0700 Subject: [PATCH] fix using wrong subnet for count --- modules/eks-vpc-tags/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/eks-vpc-tags/main.tf b/modules/eks-vpc-tags/main.tf index a59d7c2..46b071f 100644 --- a/modules/eks-vpc-tags/main.tf +++ b/modules/eks-vpc-tags/main.tf @@ -42,7 +42,7 @@ resource "aws_ec2_tag" "private_subnet_tag" { } resource "aws_ec2_tag" "public_subnet_tag" { - count = length(var.private_subnet_ids) + count = length(var.public_subnet_ids) resource_id = var.public_subnet_ids[count.index] key = "kubernetes.io/role/elb" value = "1"