In this document, we will learn how to setup connection between two vpc through Transit gateway.
So, you have to perform these steps while deploying the CloudFormation template v7.
Open the Amazon VPC console at https://console.aws.amazon.com/cloudformation/
Now click on create stack.
Use this template: https://atlan.s3.amazonaws.com/deploy/cf/templates/main.yaml
In the parameters, go to the
Transit Gateway Configuration section.
ConnectwithExistingTransitGateway as true.
TransitGatewayID field provide the ID of the transit gateway which you need to configure.
TransitGatewayCIDR, enter the CIDR of the transit gateway.
Fill all the parameters required for the deployment and launch the stack.
Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.
On the navigation pane, choose the routing table.
Search the VPC’s route table:
Select the routing table and click Routes> edit routes
Update the routing table associated with your VPN VPC:
Allow CIDR you used for deploying the stack through transit gateway.