fortinetdev / terraform-aws-cloud-modules

Apache License 2.0
2 stars 1 forks source link

When using existing_gwlb , the error message below appears. #2

Open swnam32 opened 5 months ago

swnam32 commented 5 months ago

existing_gwlb

existing_gwlb = { name = "GWLB-swnam-fgt" } gwlb

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

lix-fortinet commented 5 months ago

Hi @swnam32,

Thank you for raising this issue. We will fix it in the next release.

Thanks, Xing