How can I enable communication between multiple VPCs from a single VPN connection attached to my transit gateway without allowing access between the VPCs?
"I have two virtual private clouds (VPCs): one for production and one for development. On-premises users need access to both VPCs with a single VPN connection. I must establish network connectivity between the VPCs and the on-premises network through a VPN connection. Additionally, I need to block access between the VPCs. How can I enable communication between multiple VPCs and a VPN connection attached to my transit gateway without allowing access between the VPCs?"
"I have two virtual private clouds (VPCs): one for production and one for development. On-premises users need access to both VPCs with a single VPN connection. I must establish network connectivity between the VPCs and the on-premises network through a VPN connection. Additionally, I need to block access between the VPCs. How can I enable communication between multiple VPCs and a VPN connection attached to my transit gateway without allowing access between the VPCs?Short DescriptionComplete the steps below to establish network connectivity between resources in multiple VPCs so that:On-premises users can access resources from all VPCs across the VPNVPC resources cannot access resources in the other VPCsResolutionCreate a transit gateway, and then attach your VPCs and a site-to-site VPNCreate a transit gateway.Attach your VPCs to your transit gateway.Create asite-to-site VPN connection and attach it to your transit gateway.Notes:Disable the Default association route tablesetting when creating your transit gateway.To automatically propagate VPN routes to the transit gateway route table, choose Dynamic(requires Border Gateway Protocol) for Routing option.Create a transit gateway route table and associate your VPCs to itOpen the Amazon Virtual Private Cloud (Amazon VPC) console.From the navigation pane, choose Transit Gateways.Verify that the Default association route tablesetting for your transit gateway is set to Disable.**Note:**If the setting is set to Enable, skip to step 8.Choose Transit Gateway Route Tables.Choose Create Transit Gateway Route Table, and then complete the following:For Name tag, enter Route Table A.For Transit Gateway ID, choose the Transit Gateway IDfor your transit gateway.Choose Create Transit Gateway Route Table.Choose Route Table A(or the default route table of your transit gateway). Then, choose Associations, Create Association.For Choose attachment to associate, choose the association IDs for your VPCs. Then, choose Create Association. Repeat this step until all of your VPCs display under Association.Delete the VPN association from default transit gateway route table.Create a second transit gateway route table and associate your VPN connection association to itChoose Transit Gateway Route Tables.Choose Create Transit Gateway Route Table, and then complete the following:For Name tag, enter Route Table B.For Transit Gateway ID, choose the Transit Gateway IDfor your transit gateway.Choose Create Transit Gateway Route Table.Choose Route Table B(or the default route table of your transit gateway). Then, choose Associations, Create Association.Associate the VPN connection that you just created with Route Table B.Propagate routes from your VPCs and VPN on both route tablesChoose Route Table A Propagation.Choose Propagation. For Choose attachment to propagate, choose the propagation for the VPN. If you have propagation enabled for all of the attachments, verify that the VPN connection association is not enabled in this route table.**Important:**If you created a VPN connection with the Static Routeoption (rather than Dynamic Routing), you must create a static route for the on-premises network to the VPN on Route Table A instead of enabling route propagation from the VPN connection.Choose Route Table B Propagation.Choose Propagation. For Choose attachment to propagate, choose the propagation for all of the VPCs.Configure the route table associated with your VPC and attachment subnetOpen the Amazon VPC console.From the navigation pane, choose Route Tables.Choose the route table that's attached to the attachment subnet.Choose the Routestab, and then choose Edit Routes.Choose the Add Routetab, and then complete the following:For Destination, choose the subnet of the on-premises network.For Target, choose your transit gateway.Choose Save routes.**Note:**If your use case requires more restrictive access between your VPCs, you can create a separate route table for each VPC and configure the routes. Keep in mind:Routing in the transit gateway route table is based on the association of the transit gateway association and the transit gateway route table.You can configure routes to any destination in the transit gateway attachment in any transit gateway route table. The transit gateway attachment doesn't need to be associated with that specific route table.Follow"