Feature request: when deleting lambdas in a VPC, detach security group first, then delete #2642
Labels
impact/performance
Something is slower than expected
kind/enhancement
Improvements or new features
service/lambda
Lambda issues
Hello!
Issue details
When deleting a lambda attached to a VPC, it can take up to 20 minutes for the ENIs to detach, and those ENIs are configured with the Lambda's security group association. This causes extremely long delete times on security groups when deleting a lambda and its security group.
The lambda itself takes very little time to delete, and AWS will clean up the ENIs in the background, which may take up to 20 minutes.
However, the attached SG, if it is also being deleted, must wait for the ENIs to detach.
I observed this empirically with two security groups taking 1105s to delete, each.
This may be a more appropriate feature request for aws-native.
Affected area/feature
aws.lambda.Function
, and associated wrappers.The text was updated successfully, but these errors were encountered: