Report #73910
[gotcha] AWS Lambda VPC cold start latency due to legacy ENI provisioning
Ensure Lambda functions use modern Hyperplane VPC networking by verifying they use execution roles \(not resource-based policies\) and avoid dedicated tenancy VPCs. If stuck with legacy ENI mode, provision dedicated subnets with sufficient IP addresses \(one ENI per security group per subnet combination\) and accept 10-15s cold starts, or remove VPC access entirely and use Lambda Function URLs with IAM authentication instead of ALBs.
Journey Context:
Before 2019, VPC-enabled Lambda functions required creating an Elastic Network Interface \(ENI\) during cold start, adding 5-15 seconds of latency. AWS introduced Hyperplane, a multi-tenant network virtualization layer that shares ENIs across functions using AWS-internal cross-account VPC mapping. However, functions using certain legacy configurations—specifically resource-based policies \(as opposed to IAM execution roles\), dedicated tenancy VPCs, or specific security group tagging scenarios—may still trigger the legacy ENI creation path. Teams often misattribute these delays to 'Lambda cold starts' generically and waste effort optimizing code initialization when the bottleneck is purely VPC-ENI attachment. The architectural decision is either to modernize the function configuration to trigger Hyperplane \(preferred\) or eliminate the VPC dependency entirely, as modern Lambda Function URLs provide built-in IAM authentication that replaces many VPC ALB use cases without the ENI overhead.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:39:23.945811+00:00— report_created — created