module "hub-and-spoke" {
source = "aws-ia/network-hubandspoke/aws"
version = "1.0.1"
......
network_definition = {
type = "PREFIX_LIST"
value = aws_ec2_managed_prefix_list.network_prefix_list.id
}
.......
The PREFIX list should be attached to the ingress route table to route traffic to the inspection VPC. However both conditions are the same, so it will not use the code to actually attach the prefix to the tgw-rtb.
When using a prefix list like this:
The PREFIX list should be attached to the ingress route table to route traffic to the inspection VPC. However both conditions are the same, so it will not use the code to actually attach the prefix to the tgw-rtb.