Creating VPC route tables
To create a VPC route table:
- In the AWS console, open the VPC service.
- Configure two spoke VPC route tables:
- Select Route Tables, then click the Create route table button.
- Configure the desired name, then select the spoke A VPC. Click the Create button.
- Repeat the process for the spoke B VPC.
- Select the spoke A VPC route table. On the Routes tab, click the Edit routes button.
- Click Add Route.
- In the Destination field, specify 0.0.0.0/0.
- For the Target, specify the Transit Gateway (TGW). Click Save Routes.
- On the Subnet Associations tab, click the Edit subnet associations button.
- Select the spoke subnet that you just created, then click Save.
- Repeat the process for the spoke B route table.
- Configure the security VPC internal route table:
- Click the Create route table button.
- Configure Sec_VPC_Internal as the name. This will be the route for internal traffic targeting the TGW. Select the security VPC.
- Click the Create button.
- Select the security VPC internal route table. On the Routes tab, click the Edit routes button.
- Click Add Route.
- In the Destination field, enter 0.0.0.0/0. Use the TGW as the target.
- Click Save changes.
- On the Subnet Associations tab, click the Edit subnet associations button.
- Select the internal/private subnets for both VPC availability zones (AZ) A and B, then click the Save button.
- Configure the security VPC external route table:
- Click the Create route table button.
- Configure Sec_VPC_External as the name. This will be the Internet-facing route table. Select the security VPC.
- Click the Create button.
- Select the security VPC external route table. On the Routes tab, click the Edit routes button.
- Add the following routes:
Destination
Target
0.0.0.0/0
Internet gateway
10.1.1.0/24
TGW
10.2.1.0/24
TGW
- On the Subnet Associations tab, click the Edit subnet associations button.
- Add the management, public, and heartbeat subnets for security VPC AZs, then click the Save button.
- Configure the route table for return traffic to the spoke VPCs from the FortiGate:
- Click the Create route table button.
- Configure Sec_VPC_TGW as the name. Select the security VPC.
- Click the Create button.
- On the Routes tab, click the Edit routes button.
- Add the following routes:
Destination
Target
10.1.1.0/24
TGW
10.2.1.0/24
TGW
- On the Subnet Associations tab, click the Edit subnet associations button.
- Select the TGW subnets for both AZs A and B, then click the Save button.
You will add a route that targets the ENI ID of port2 of the primary FortiGate in a later step. |