File Sharing VPC
IT department VPC for file sharing. Peer other VPCs to central VPC, but prevent other VPCs from sending traffic to each other.
When you have a small number of VPCs or networking budget is constrained by paying for transit gateway, use VPC peering feature to establish one-to-one network connection between two VPCs.
Each VPC owner must add routes to their VPC route table:
VPC A route table:
VPC B route table:
Two startups collaborating on project can establish VPC peering to share resources securely. This setup enables communication over AWS private network infrastructure, ensuring faster and more secure data exchange without exposing resources to public internet.
Transitive peering is not supported by VPC peering, making it secure and manageable to isolate errors and limit blast radius for network attacks.
Example: If VPC A peers with VPC B, and VPC B peers with VPC C, this does not mean VPC A connects to VPC C. VPC peering does not let VPC A connect to VPC C unless explicitly established as peers.
This provides control over which VPCs can communicate and which should be isolated with minimal access.
You can configure route tables for VPC peering connection to restrict access to:
VPC A subnet route table:
VPC B subnet route table:
File Sharing VPC
IT department VPC for file sharing. Peer other VPCs to central VPC, but prevent other VPCs from sending traffic to each other.
Customer Shared VPC
Company VPC shared with customers. Each customer creates peering with your VPC, but customers cannot route to other customer VPCs.
Active Directory VPC
Central VPC for Active Directory services. Specific instances in peer VPCs send requests to AD servers requiring full central VPC access.
When connecting VPCs with overlapping IP address ranges or wanting application-level connections, use AWS PrivateLink instead of VPC peering.
Service provider VPC has Network Load Balancer with EC2 instances as targets. Consumer VPC owner creates VPC elastic network interface endpoint to network load balancer endpoint.
VPC peering establishes direct one-to-one networking connections for private traffic routes between VPCs, with no costs for peering itself but data transfer charges apply. It provides secure, low-latency connections while maintaining traffic isolation and control over VPC-to-VPC access patterns.