Skip to content

Is it better to have a single Direct Connect Gateway or multiple Direct Connect Gateways?

1

Is it better to have a single Direct Connect Gateway or multiple Direct Connect Gateways?

I'm trying to connect multiple VPCs (VPC-A, VPC-B) and multiple data centers (DC-A, DC-B) using Direct Connect Gateway (DCGW).

Which of the following configurations is better? Is it better to have a single Direct Connect Gateway or multiple Direct Connect Gateways?

  • VPC-A, VPC-B <-> DCGW <-> DC-A, DC-B
  • VPC-A, VPC-B <-> DCGW-A <-> DC-A
  • VPC-A, VPC-B <-> DCGW-B <-> DC-B
EXPERT
asked 4 years ago2.6K views
3 Answers
3
Accepted Answer

Short answer: It doesn't matter. If it were me, I'd go with a single Direct Connect Gateway.

More information is available in this blog post but it comes down to Direct Connect Gateway being highly redundant and acting as a BGP route reflector rather than being in the packet path.

AWS
EXPERT
answered 4 years ago
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago
0

Share what you have learned.
2 is impossible. It is not possible to attach multiple Direct Connect Gateways to one VPC-VGW. Therefore, 1 is the answer to this question.

EXPERT
answered 4 years ago
0

A single DCGW is generally better for most use cases.

For connecting multiple VPCs (VPC-A, VPC-B) to multiple data centers (DC-A, DC-B), the recommended architecture is a single AWS Direct Connect Gateway (DXGW) paired with a Transit Gateway. Each data center establishes its own dedicated DX connection — ideally terminating at separate DX locations for maximum resiliency — with transit virtual interfaces pointing to the shared DXGW. The DXGW then associates with a single Transit Gateway, which has both VPCs attached, providing a centralized, scalable hub for hybrid connectivity. This single-DXGW approach simplifies management, reduces operational overhead, and aligns with AWS Well-Architected best practices, while the Transit Gateway enables inter-VPC routing and scales to thousands of VPCs if needed. Multiple DXGW should only be considered when strict routing isolation, regulatory separation, or DXGW association limits require it — none of which apply to a two-VPC, two-DC setup.

AWS
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.