A transit gateway (TGW) is a transit hub used to connect two VPCs or a VPC to an on-premise network. This example connects the application VPC to the security VPC via a TGW. This ensures that any access to and from the application VPC is routed via the security VPC, where the FortiGates can inspect it.
- Go to VPC Dashboard > Transit Gateways > Transit Gateways.
- Click Create Transit Gateway.
- Configure the TGW as needed. Creating a TGW creates a TGW default route table. The table is used as the default association and propagation route table for this gateway. You can access this table in VPC Dashboard > Transit Gateways > Transit Gateway Route Tables.
You can create a gateway attachment to link separate VPCs and subnets to the newly created TGW. The two resources can be in the same or different AWS accounts. This example assumes that both VPCs are in the same AWS account.
- Go to VPC Dashboard > Transit Gateways > Transit Gateway Attachments.
- Click Create Transit Gateway Attachment.
- From the Transit Gateway ID dropdown list, select the TGW that you created.
- From the Attachment type dropdown list, select VPC.
- From the VPC ID dropdown list, select the VPC that you want to attach to the TGW.
- Under Subnet IDs, select the required subnet in the desired AZ.
- Configure other fields as desired.
- Click Create Attachment.
- Repeat the process for the remaining two VPC attachments. The security VPC is attached to the TGW, with only the TGW subnets in each AZ selected. This ensures that traffic can be routed seamlessly to and from the GWLB endpoint. You must attach each subnet/AZ to the TGW separately.