Back to results for “Connectivity”
AWS › VPC & Networking

How do VPC endpoints, including gateway and interface endpoints, allow private connectivity to AWS services without traversing the public internet?

Advanced

Answer

A VPC endpoint lets resources within your VPC connect privately to supported AWS services, such as S3 or DynamoDB using a gateway endpoint, or many other services using an interface endpoint backed by a private IP address within your VPC, meaning traffic to these services never needs to leave the AWS network or traverse the public internet through an internet gateway or NAT Gateway, both improving security and often reducing data transfer costs.
aws ec2 create-vpc-endpoint --vpc-id vpc-12345 --service-name com.amazonaws.us-east-1.s3 --route-table-ids rtb-12345
Real-world example A company running sensitive workloads in a private subnet with no internet access at all still allows those workloads to securely access S3 and Secrets Manager by configuring VPC endpoints for both services, entirely avoiding any need for internet connectivity.

Common follow-ups: What is the difference between a gateway endpoint and an interface endpoint?;Do VPC endpoints incur an hourly cost in addition to standard data transfer charges?