Skip to content

Commit

Permalink
Merge pull request #52 from streamnative/fix_subnet_count
Browse files Browse the repository at this point in the history
fix using wrong subnet for count
  • Loading branch information
jrsdav authored Mar 2, 2022
2 parents f1520a4 + 591c189 commit 53b5c19
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 53b5c19

Please sign in to comment.