VPC ENDPOINTS EXPLAINED
Securely access S3 and DynamoDB without traversing the public internet, NAT Gateways, or Proxy Servers.
THE INGREDIENTS
What you need to establish a private connection.
Private Subnet
An isolated VPC subnet with no route to an Internet Gateway (IGW).
Endpoint Policy
IAM-style JSON policy attached to the endpoint to control resource access.
Route Tables
Required for Gateway Endpoints to direct traffic to S3 or DynamoDB.
PrivateLink (ENI)
Required for Interface Endpoints. Uses a private IP from your subnet pools.
THE ARCHITECTURE
Gateway vs Interface Comparison
| Feature | Gateway Endpoint | Interface Endpoint |
|---|---|---|
| Services Supported | S3 & DynamoDB Only | Most AWS Services (EC2, Kinesis, etc.) |
| Cost | FREE | Hourly Rate + Data Processing Fee |
| Implementation | Routing Table Entry | Elastic Network Interface (ENI) + DNS |
| Access Method | Public IP (but stays on AWS network) | Private IP from your Subnet |