Difference between revisions of "Error: Invalid index"

From wikieduonline
Jump to navigation Jump to search
Line 13: Line 13:
  
 
  on [[.terraform/]]modules/eks/[[data.tf]]
 
  on [[.terraform/]]modules/eks/[[data.tf]]
 +
 +
 +
[[terraform plan -refresh-only]]
  
 
== See also ==
 
== See also ==

Revision as of 07:54, 22 December 2022

╷
│ 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.
╵


on .terraform/modules/eks/data.tf


terraform plan -refresh-only

See also

Advertising: