Error: Invalid index
Jump to navigation
Jump to search
╷ │ Error: Invalid index │ │ on variables.tf line 91, in resource "aws_lb_target_group" "this": │ 91: for_each = lookup(var.lb_target_group[count.index], "health_check", null) │ ├──────────────── │ │ count.index is 14 │ │ var.lb_target_group is "lb_target_group_your_name" │ │ This value does not have any indices. ╵
╷ │ Error: Invalid index │ │ on api.tf line 15, in resource "aws_ecs_service" "your_service": │ 15: target_group_arn = aws_lb_target_group.your_tg[0].arn │ ├──────────────── │ │ aws_lb_target_group.your_tg is empty tuple │ │ The given key does not identify an element in this collection value: the │ collection has no elements. ╵
on .terraform/modules/eks/data.tf
terraform plan -refresh-only
See also[edit]
Advertising: