Closed fe-ax closed 2 months ago
Hi! Are you creating the corresponding routes in the TGW itself? This module only creates the VPC and the transit_gateway configuration provides the VPC attachment and VPC routing - but we do not create any TGW routing. You will need to create this TGW routing (route tables, static routes, associations/propagations)
We have a module that does these actions: https://registry.terraform.io/modules/aws-ia/network-hubandspoke/aws/latest. We use this module to create the central egress VPC and the corresponding TGW routing. For Spoke VPCs, you will need to use this module and attach the VPCs to the TGW
Hi @pablo19sc,
Thank you for responding so quickly. I didn't get the hub and spoke module working on the first attempts, but I put more effort into it since you recommended it. It's working great so far.
Hi,
I'm having trouble connecting a VPC in another account to the transit gateway in the networking account.
Do you know if an example is available to set up an egress VPC and route traffic from other accounts through the egress VPC?
I can't figure out how the module uses the "transit_gateway" subnets. I hope someone can push me in the right direction on how to get traffic from an EC2 instance in the sandbox account to the internet through the nat gateway in the egress VPC.
I've set up the following:
Networking account
Sandbox account
Added: I've created a route
0.0.0.0
to the egress-vpc, which seems to work right, but I'm not sure this is the right solution.