The deployment in AWS is failing if Netweaver is not enabled:
Error: Invalid index
on modules/netweaver_node/main.tf line 46, in resource "aws_route" "nw-pas-route":
46: instance_id = aws_instance.netweaver.0.id
|----------------
| aws_instance.netweaver is empty tuple
The given key does not identify an element in this collection value.
This fix basically checks if there is any NW vm before checking the current condition and create the route
The deployment in AWS is failing if Netweaver is not enabled:
This fix basically checks if there is any NW vm before checking the current condition and create the route