terraform error this value has no indices and is not the type of

This fixed it

data "aws_subnet" "private" {
  for_each = data.aws_subnet_ids.private.ids
  id    = each.value
}

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top