New VPC Subnets and Transit Gateway attachment

0

Customer has an existing VPC with 2 subnets which are attached to a Transit Gateway. The subnet is running out of available IP space. So they added a new CIDR range to the VPC and added two subnets (Subnet 3 and 4). Subnet 1 and Subnet 3 share the same AZ while Subnet 4 is in a new AZ.

When attaching the new subnets to the Transit Gateway, you can select Subnet4 to be attached. Since Subnet 1 and Subnet 3 are in the same AZ, the Transit Gateway attachment option allows you to select only subnet 1 or subnet 3.

The question is whether Transit Gateway will know a route/path to subnet 3 if the transit gateway attachment is not explicitly made. In another word, would you need to detach subnet 1 from the Transit Gateway attachment and attach subnet 3?

profile pictureAWS
专家
Dzung_N
已提问 4 年前1356 查看次数
1 回答
0
已接受的回答

You can only have 1 attachment per AZ. In fact, you need to have 1 attachment per AZ that you have created subnets in. The next step is to make sure the route table associated to each subnet has the required routes pointing to the Transit Gateway. These will be static routes.

On the TGW routing side, if you have route propagation enable with TGW route tables (or default route table) the entire added CIDR will be advertised automatically. if you do not have route propagation in the TGW, you can add the entire CIDR or what every subnets you want to advertise statically in the TGW.

AWS
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则