routing traffic between VPC

1

Hello, I have two VPC(VPA A & VPC B) in same region. Both are associated with direct connect gateway and than to direct connect using private virtual interface.

Question.

How can I route traffic between two VPC without using transit gateway? Can we use VPC peering ?

Thanks in advance

已提問 2 年前檢視次數 753 次
1 個回答
1
已接受的答案

Hello,

Recommend checking below link which lists all the options for VPC to VPC connectivity and to answer your question, yes VPC Peering would work in your scenario.

Amazon VPC-to-Amazon VPC connectivity options


Specifically regarding DXGW (Direct connect gateway) you can not use it for east-west traffic between the VPCs, see below from the FAQ

Q: Can I send traffic from a VPC that is associated with an AWS Direct Connect gateway to another VPC associated to the same AWS Direct Connect gateway?

No, AWS Direct Connect gateway's only support routing traffic from AWS Direct Connect VIFs to VGW (associated with VPC). In order to send traffic between two VPCs, you must configure a VPC peering connection.


In a rare edge case you can make it work which is discussed here.

profile pictureAWS
專家
已回答 2 年前
profile pictureAWS
專家
已審閱 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南