Transit Gateway - Multiple Subnet per AZ

0

Hello,

I have a situation with several VPCs in a different account. We want to configure a monitoring environment in its own VPC. The VPC must be able to connect to EC2 instances in all our VPCs and subnets. Instead of using traditional VPC peering, I want to try Transit Gateway to simplify the process and management. But I had a problem and I want to confirm that this is a Transit Gateway design issue and that we have not misinterpreted the documentation. In most of our VPCs, we use multiple subnets by AZ. Our standard VPC configuration includes two subnets in AZ A (one private and one public) and two subnets in AZ B (one private and one public). We use classic AWS design to support high availability. According to my test and documentation, it is impossible to link two or more subnets to a Transit Gateway Attachment. It is therefore impossible to use Transit Gateway to route traffic to all subnets of the different VPCs and accounts that we have from the VPC monitoring. Am I missing something or not using the transit gateway properly?

Thank you for your help

질문됨 5년 전2917회 조회
2개 답변
1

the TG will be able to route to any subnet, once you setup your routing tables.

The subnet association is simply the subnet WITHIN THE ENTIRE AZ that the TG uses to route traffic: It's likely setting up an Elastic Network Interface in that subnet..once it does that, it will be able to communicate to any subnet in that AZ, as long as your routing rules and security groups allow it.

Make sense?

답변함 5년 전
0

The console really leads us to think that the transit gateway attachment will be restricted only to those subnets that are marked at the attachment creation time. What happens at the creation attachment moment moment, in fact, is the choice of in which subnet the elastic network interface related to that particular attachment will be created and not which subnet can be used by the attachment in question. ALL subnets in an Availability Zone are reached by an attachment created in that Availability Zone.

Also, due to this behavior, it is recommended that when using a transit gateway in your network architecture, you have specific subnets with a /28 range, for example, to be used only for the transit gateway attachments.

Design Best Practices Link - https://docs.aws.amazon.com/vpc/latest/tgw/tgw-best-design-practices.html

Print of TG Best Practices

profile picture
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠