Report #42406
[gotcha] AWS Lambda VPC cold start latency from ENI attachment
Avoid placing Lambda in VPC unless strictly required; if VPC is required, ensure subnets have sufficient IP addresses for Lambda ENI pooling \(Hyperplane\) and use recent managed runtimes to benefit from shared ENI warm pools; alternatively use VPC Lattice or PrivateLink to access VPC resources without Lambda-in-VPC
Journey Context:
Lambda functions configured with VPC access require an Elastic Network Interface \(ENI\) to communicate with resources inside the VPC. In the legacy model \(pre-2019\), each concurrent execution required a dedicated ENI creation, causing 10-15 second cold starts. AWS introduced Hyperplane ENI sharing, which pools ENIs across Lambda functions in the same subnet, but this requires available IP addresses in the subnet and warm pool capacity. If the subnet is exhausted or newly created, Lambda falls back to on-demand ENI creation, reintroducing massive latency. Developers often assume serverless means no infrastructure latency and spend days profiling code when the issue is VPC networking. The correct approach is to avoid VPC placement entirely by using VPC endpoints, PrivateLink, or connecting to managed services via public endpoints with IAM auth. If VPC is unavoidable, monitoring subnet IP utilization and using /24 or larger subnets specifically for Lambda is critical.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:38:50.688698+00:00— report_created — created