AWS VPC Peering & Endpoints

Learn how to connect VPCs using peering and privately access AWS services with VPC endpoints.

vpc-peering-config.json
{
"VPCPeeringConnection": {
"RequesterVPC": "vpc-12345",
"AccepterVPC": "vpc-67890"
}
}
vpc-peering-config.json
1 / 10
🔗

Tutor:VPC Peering allows you to connect two VPCs using private IP addresses. This enables resources in different VPCs to communicate as if they were on the same network. VPC peering is a one-to-one relationship between two VPCs.


VPC Peering Mastery

Unlock nodes by learning new VPC concepts.

Concept 1: VPC Peering

VPC Peering allows you to connect two VPCs using private IP addresses. This enables resources in different VPCs to communicate as if they were on the same network. VPC peering is a one-to-one relationship between two VPCs and is not transitive.

System Check

What is VPC Peering?


Community Holo-Net

Share Your VPC Architecture

Configured VPC peering or endpoints? Share your networking configurations.

VPC Peering & Endpoints

Author

Pascual Vila

Cloud Instructor.

VPC Peering allows you to connect two VPCs using private IP addresses, enabling resources in different VPCs to communicate as if they were on the same network. VPC Endpoints provide private connectivity to AWS services without using an Internet Gateway.

VPC Peering

VPC Peering is a one-to-one relationship between two VPCs. To create a peering connection, you request a peering connection from one VPC to another, and the owner of the accepter VPC must accept it. Once accepted, both VPCs can route traffic to each other.

VPC Endpoints

VPC Endpoints allow you to privately connect your VPC to AWS services without using an Internet Gateway, NAT device, VPN connection, or AWS Direct Connect. Gateway Endpoints are free and support S3 and DynamoDB. Interface Endpoints use PrivateLink and support many other AWS services.

VPC Peering & Endpoints Glossary

VPC Peering
A networking connection between two VPCs that enables you to route traffic between them using private IP addresses. Peering connections are not transitive.
VPC Endpoint
A private connection between your VPC and AWS services without using an Internet Gateway. Gateway Endpoints support S3 and DynamoDB. Interface Endpoints use PrivateLink and support many other AWS services.
Gateway Endpoint
A free VPC endpoint that provides private connectivity to S3 and DynamoDB. Gateway Endpoints are route table entries that automatically scale.
Interface Endpoint
A VPC endpoint that uses PrivateLink technology and provides private connectivity to many AWS services. Interface Endpoints use ENIs in your subnets and incur charges.
Non-Transitive Peering
VPC peering connections are not transitive. If VPC A is peered with VPC B, and VPC B is peered with VPC C, VPC A cannot communicate with VPC C through VPC B. A direct peering connection is required.