I know lambda will create ENI (which in turn will create a longer cold start) if it wants to access resources in VPC. However, I wish to know when does the lambda function create ENI?
Is it on the container's initialization? (which the developer has no control of)
or is it when we start a connection (running db.Connect()
or something like it) with other resources e.g. RDS
ENI create every cold start.
https://docs.aws.amazon.com/lambda/latest/dg/vpc.html