Skip to content

Cross VPC connections for self hosted databases

0

I am building a data warehouse which will ingest data from source databases (self hosted on ec2 and RDS) hosted in multiple VPCs. What is the best way to access the source databases in different VPCs from a centralized VPC where the data warehouse will be hosted ?

AWS

asked 2 years ago464 views

2 Answers
1
Accepted Answer

Hello, There are 3 ways of achieving connectivity to your centralized data warehouse from different VPCs:

  1. Transit Gateway: Establishing connectivity between the central VPC and the spoke VPCs. Scalable and easy to maintain.

  2. VPC Peering: Establishing multiple VPC peering connections from the spoke VPCs to the central VPC. Although this may be cost effective but ideally not scalable if the number of VPCs increase.

  3. Resource VPC endpoint/Service Network VPC endpoint: AWS recently launched the resource VPC endpoint and the service network VPC endpoint that allow you to access AWS-native resources such as an RDS database, a domain name, or an IP address in another VPC or on-premises environment via the resource VPC endpoint. You can also pool multiple resources in an Amazon VPC Lattice service network, and access the service network using a service network VPC endpoint.

Please refer to the launch announcement for more details: https://aws.amazon.com/about-aws/whats-new/2024/12/access-vpc-resources-aws-privatelink/

AWS
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

1

Hello.

If you have many VPCs, using a Transit Gateway is recommended as it simplifies routing configurations.
However, since TransitGateway charges a fee for each attachment, VPC peering is cheaper from a cost perspective.
https://aws.amazon.com/transit-gateway/pricing/?nc1=h_ls
https://aws.amazon.com/jp/blogs/networking-and-content-delivery/best-practices-and-considerations-to-migrate-from-vpc-peering-to-aws-transit-gateway/

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years 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.