When should you use VPC endpoints?
IntermediateProductionVPC & Network Architecture
Answer
When private workloads call AWS services and you want to avoid NAT cost, internet exposure or compliance issues. Gateway endpoints (S3, DynamoDB) are free and route-table based. Interface endpoints (PrivateLink) create ENIs with private IPs for ECR, STS, SSM, Secrets Manager, CloudWatch and more, at about 0.01 USD per hour per AZ plus data.
Attach endpoint policies and use aws:SourceVpce conditions in bucket policies to lock data access to your VPC.
More on VPC & Network Architecture
How would you design a production VPC for a three-tier web application?IntermediateHow many AZs and subnets should a production VPC use, and why?BeginnerWhat makes a subnet public versus private?BeginnerHow do you avoid NAT gateway single points of failure and cross-AZ charges?IntermediateHow do you design connectivity for 50+ VPCs across accounts and regions?AdvancedWhat is PrivateLink and when is it better than peering?Advanced