Error: Invalid index
│
│ on ....\modules\aws\gwlb\main.tf line 103, in data "aws_network_interface" "gwlb_intfs":
│ 103: values = ["ELB gwy/${aws_lb.gwlb[0].name}/"]
│ ├────────────────
│ │ aws_lb.gwlb is empty tuple
│
│ The given key does not identify an element in this collection value: the collection has no elements.
╵
╷
│ Error: Invalid index
│
│ on ....\modules\aws\gwlb\main.tf line 103, in data "aws_network_interface" "gwlb_intfs":
│ 103: values = ["ELB gwy/${aws_lb.gwlb[0].name}/"]
│ ├────────────────
│ │ aws_lb.gwlb is empty tuple
│
│ The given key does not identify an element in this collection value: the collection has no elements.
╵
existing_gwlb
existing_gwlb = { name = "GWLB-swnam-fgt" }
Error: Invalid index │ │ on ....\modules\aws\gwlb\main.tf line 103, in data "aws_network_interface" "gwlb_intfs": │ 103: values = ["ELB gwy/${aws_lb.gwlb[0].name}/"] │ ├──────────────── │ │ aws_lb.gwlb is empty tuple │ │ The given key does not identify an element in this collection value: the collection has no elements. ╵ ╷ │ Error: Invalid index │ │ on ....\modules\aws\gwlb\main.tf line 103, in data "aws_network_interface" "gwlb_intfs": │ 103: values = ["ELB gwy/${aws_lb.gwlb[0].name}/"] │ ├──────────────── │ │ aws_lb.gwlb is empty tuple │ │ The given key does not identify an element in this collection value: the collection has no elements. ╵