Networking

VPC Endpoints and Transit Gateway

Endpoints privately connect a VPC to supported AWS services; Transit Gateway connects many VPCs and networks through a hub.

How it works

A VPC endpoint provides private connectivity from a VPC to supported services without traversing the public internet. Gateway endpoints serve Amazon S3 and DynamoDB; interface endpoints use AWS PrivateLink. AWS Transit Gateway is a regional routing hub connecting multiple VPCs and on-premises networks through attachments. The two tools address different connectivity needs.

When to use it

Choose it when the requirement is private S3 access without internet versus hub-and-spoke network connectivity.

Real-world example

A bank connects multiple VPCs and its on-premises network through a Transit Gateway, with appropriate routes for each attachment. In one VPC, servers use an S3 gateway endpoint and an associated route table to reach S3 without an internet gateway or NAT for that traffic.

Common pitfall

Do not assume an S3 gateway endpoint in one VPC can be used from an on-premises network or through a Transit Gateway. Those scenarios need another solution, such as an S3 interface endpoint, with suitable routing and DNS.

Often confused with

Compare its service boundary with CIDR planning, NAT, and VPC Flow Logs; choose from the workload requirement.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning