terraform-aws-vpc
terraform-aws-vpc copied to clipboard
[WIP] Route string change
change routes from bool / lists to accept either string which is a prefix list or a cidr
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
closed in favor of #70