terraform-aws-vpc icon indicating copy to clipboard operation
terraform-aws-vpc copied to clipboard

[WIP] Route string change

Open drewmullen opened this issue 3 years ago • 1 comments

change routes from bool / lists to accept either string which is a prefix list or a cidr

drewmullen avatar Aug 02 '22 19:08 drewmullen

cd examples/transit_gateway
terraform apply -target=module.tgw_base_for_example_only
terraform apply

errors:

│ Error: Invalid for_each argument │ │ on ../../main.tf line 171, in resource "aws_route" "private_to_nat": │ 171: for_each = toset(try(local.private_subnet_names_nat_routed, [])) │ ├──────────────── │ │ local.private_subnet_names_nat_routed will be known only after apply

if you comment out the managed_prefix_list and change L27 to be a static cidr range, the whole thing builds fine

drewmullen avatar Aug 02 '22 19:08 drewmullen

closed in favor of #70

drewmullen avatar Aug 04 '22 17:08 drewmullen