Report #69734
[gotcha] Lambda VPC cold start adds 5-15s latency due to ENI creation
Avoid VPC for latency-sensitive Lambda; if VPC is required, use provisioned concurrency to keep ENIs warm, or switch to Lambda VPC networking improvements \(Hyperplane\) but monitor cold starts.
Journey Context:
When a Lambda function is configured with VPC subnets, the execution environment must create and attach an Elastic Network Interface \(ENI\) during cold start. This involves EC2 API calls and network setup, adding 5-15 seconds of latency that does not appear in standard Lambda execution time metrics \(it happens before the handler invokes\). Teams often misattribute this to 'slow code' or 'cold starts in general' without realizing the VPC coupling is the culprit. Provisioned concurrency pre-warms these ENIs, eliminating the penalty, but at higher cost. The Hyperplane ENI improvement \(rolled out by AWS\) reduces this but does not eliminate it entirely for all configurations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:32:03.555672+00:00— report_created — created