Skip to content

Commit

Permalink
fix using wrong subnet for count
Browse files Browse the repository at this point in the history
  • Loading branch information
addisonj committed Mar 2, 2022
1 parent f07007c commit 591c189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/eks-vpc-tags/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 591c189

Please sign in to comment.