Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not create "ipv6-private" aws_route when create_egress_only_intern…
…et_gateway = false (#41) "ipv6-private" aws_route resource is in creation even if there is no aws_egress_only_internet_gateway. This causes these errors: ╷ │ Error: Invalid index │ │ on ../../templates/telia-oss-vpc/main.tf line 168, in resource "aws_route" "ipv6-private": │ 168: egress_only_gateway_id = aws_egress_only_internet_gateway.outbound[0].id │ ├──────────────── │ │ aws_egress_only_internet_gateway.outbound is empty tuple │ │ The given key does not identify an element in this collection value: the collection has no elements. ╵ ╷ │ Error: Invalid index │ │ on ../../templates/telia-oss-vpc/main.tf line 168, in resource "aws_route" "ipv6-private": │ 168: egress_only_gateway_id = aws_egress_only_internet_gateway.outbound[0].id │ ├──────────────── │ │ aws_egress_only_internet_gateway.outbound is empty tuple │ │ The given key does not identify an element in this collection value: the collection has no elements. ╵ ╷ │ Error: Invalid index │ │ on ../../templates/telia-oss-vpc/main.tf line 168, in resource "aws_route" "ipv6-private": │ 168: egress_only_gateway_id = aws_egress_only_internet_gateway.outbound[0].id │ ├──────────────── │ │ aws_egress_only_internet_gateway.outbound is empty tuple │ │ The given key does not identify an element in this collection value: the collection has no elements.
- Loading branch information