Creating a Transit Gateway and related resources
Creating a Transit Gateway and related resources
To create a Transit Gateway and related resources:
- Create a Transit Gateway (TGW):
- In the AWS console, open the VPC service.
- Select Transit Gateways, then click the Create Transit Gateway button.
- In the Name tag field, enter the desired name.
- Deselect Default route table association and Default route table propagation to prevent undesired association into the security route.
- Configure other fields as desired, then click Create.
- Wait for the Transit Gateway state to change from Pending to Available before proceeding.
-
Create two TGW route tables: one for the security VPC and another for the spokes:
- In the AWS console, open the VPC service.
- Select Transit Gateway Route Tables, then click the Create Transit Gateway Route Table button.
- In the Name tag field, enter the desired name.
- From the Transit Gateway ID dropdown list, select the Transit Gateway ID.
- Click Create.
- Repeat the process for the spoke route table.
- Create three TGW attachments, one for each VPC:
- In the AWS console, open the VPC service.
- Select Transit Gateway Attachments, then click the Create Transit Gateway Attachment button.
- From the Transit Gateway ID dropdown list, select the Transit Gateway ID.
- In the Attachment type field, select VPC.
- In the Attachment name tag field, enter the desired name.
- In the VPC ID field, enter the security VPC ID for the first attachment. This is TGW_Sec_VPC_Attachment in the screenshot.
- For Subnet IDs, specify both AZs and select one of the subnets that you created in each AZ as attachment subnets.
- Repeat the process for the other two VPC IDs, spokes A and B. For the subnet VPC attachment, select the corresponding AZ for each, then the Subnet ID dropdown list shows the spoke subnet that you created.
- Wait for the State to become Available.
- Create TGW associations:
- In the AWS console, open the VPC service.
- Select Transit Gateway Route Tables, then select the spoke route table.
- On the Associations tab, click the Create Association button.
- From the Choose attachment to associate dropdown list, select the spoke 1 VPC.
- Click Create association.
- Repeat the process for spoke B, which will be the second association for the route table.
- Wait for both associations to achieve the Associated state before proceeding.
- Next, select the security route table.
- Repeat the same as above, and select the security VPC attachment from the Choose attachment to associate dropdown list. Click Create association.
Creating a Transit Gateway and related resources
Creating a Transit Gateway and related resources
To create a Transit Gateway and related resources:
- Create a Transit Gateway (TGW):
- In the AWS console, open the VPC service.
- Select Transit Gateways, then click the Create Transit Gateway button.
- In the Name tag field, enter the desired name.
- Deselect Default route table association and Default route table propagation to prevent undesired association into the security route.
- Configure other fields as desired, then click Create.
- Wait for the Transit Gateway state to change from Pending to Available before proceeding.
-
Create two TGW route tables: one for the security VPC and another for the spokes:
- In the AWS console, open the VPC service.
- Select Transit Gateway Route Tables, then click the Create Transit Gateway Route Table button.
- In the Name tag field, enter the desired name.
- From the Transit Gateway ID dropdown list, select the Transit Gateway ID.
- Click Create.
- Repeat the process for the spoke route table.
- Create three TGW attachments, one for each VPC:
- In the AWS console, open the VPC service.
- Select Transit Gateway Attachments, then click the Create Transit Gateway Attachment button.
- From the Transit Gateway ID dropdown list, select the Transit Gateway ID.
- In the Attachment type field, select VPC.
- In the Attachment name tag field, enter the desired name.
- In the VPC ID field, enter the security VPC ID for the first attachment. This is TGW_Sec_VPC_Attachment in the screenshot.
- For Subnet IDs, specify both AZs and select one of the subnets that you created in each AZ as attachment subnets.
- Repeat the process for the other two VPC IDs, spokes A and B. For the subnet VPC attachment, select the corresponding AZ for each, then the Subnet ID dropdown list shows the spoke subnet that you created.
- Wait for the State to become Available.
- Create TGW associations:
- In the AWS console, open the VPC service.
- Select Transit Gateway Route Tables, then select the spoke route table.
- On the Associations tab, click the Create Association button.
- From the Choose attachment to associate dropdown list, select the spoke 1 VPC.
- Click Create association.
- Repeat the process for spoke B, which will be the second association for the route table.
- Wait for both associations to achieve the Associated state before proceeding.
- Next, select the security route table.
- Repeat the same as above, and select the security VPC attachment from the Choose attachment to associate dropdown list. Click Create association.