Report #67619
[gotcha] Lambda function inside VPC experiences 5-15 second cold start latency
Avoid placing Lambda functions in a VPC unless they require access to private resources that cannot be exposed via VPC endpoints, PrivateLink, or public APIs. If VPC is mandatory, use Provisioned Concurrency to keep execution environments warm \(which pre-initializes the ENI\), or use Lambda SnapStart for Java functions to reduce initialization time, though ENI attachment latency may still apply on first creation.
Journey Context:
When a Lambda function is configured with VPC access, each concurrent execution requires an Elastic Network Interface \(ENI\) to be created and attached to the execution environment. This process can take 5-15 seconds, significantly increasing cold start latency compared to non-VPC functions. This is not CPU initialization but network attachment time. The issue is resolved by avoiding VPC placement for functions that don't need it \(using VPC endpoints or public APIs instead\), or using Provisioned Concurrency to keep execution environments warm \(which ensures ENIs are pre-attached\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T19:58:50.279488+00:00— report_created — created