In this step, we will configure routing for Dev VPC, Test VPC to connect to the Share VPC using only the default route table.
1. Connect to dev instance
2. Check connection from dev to share instance
ping <share_instance_private_ipv4> -c5
1. Configure route table for Dev VPC
Return to VPC interface, select Route tables
Select dev-rtb
Select Routes tab then click Edit routes
Add a new route with destination 10.3.0.0/16
(CIDR of Share VPC), select Transit Gateway for target then select dev-att and click Save changes
2. Configure the routing table for Share VPC by repeating the above step
3. Check the connection again
ping <private_ipv4_share_instance> -c5
The results show that it is possible to connect from the dev instance to the share instance, proving that the Dev VPC and Share VPC can connect to each other through transit gateway.
Repeat the above steps to configure the connection between Test VPC and Share VPC and test your configuration.