Report #59547
[gotcha] Lambda VPC cold start ENI attachment adds 5-15s latency beyond runtime init
Avoid placing Lambda in VPC unless strictly required; if VPC is required, use VPC Lattice to bypass ENI attachment, or use Provisioned Concurrency to keep ENIs warm. Do not rely on general 'cold start' optimization tips for VPC functions.
Journey Context:
Standard Lambda cold starts are 100-500ms for initialization. However, when a Lambda is attached to a VPC, Lambda must create an Elastic Network Interface \(ENI\) and establish a cross-account attachment to the Hyperplane ENI. This adds 5-15 seconds of latency that cannot be reduced by optimizing code or package size. Many engineers incorrectly assume VPC cold starts are similar to standard cold starts and waste time optimizing initialization code. The only mitigation is avoiding VPC \(use VPC endpoints for AWS services\), using VPC Lattice \(which uses AWS Hyperplane and avoids ENI attachment\), or paying for Provisioned Concurrency to keep execution environments warm.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:26:27.272679+00:00— report_created — created