- Newest
- Most votes
- Most comments
Hi, Unfortunately the articles above didn't help. Still unable to delete. I got the message below:
No Lambda functions or versions found that were using the same subnet as this ENI. If this ENI is not deleted automatically in the next 24 hours then it may be 'stuck'. If the ENI will not allow you to delete it manually after 24 hours then please contact AWS support and send them the output of this script.
In addition there are no Amazon MSK, self-managed Kafka, Amazon MQ, or Amazon DocumentDB services on my account in all regions since this is a new free tier.
This is a common issue when trying to delete network interfaces (ENIs) associated with Lambda functions, even when the Lambda function no longer exists. Here are some steps you can take to resolve this:
-
Wait for automatic deletion: Lambda typically deletes the ENI automatically, but this process can take up to an hour. Try waiting and then attempt to delete the ENI again.
-
Use the Lambda ENI Finder: AWS provides a tool called the Lambda ENI Finder that can help identify which Lambda functions or versions might be using the network interface. Run this tool to check for any associations.
-
Check for old Lambda versions: Sometimes, inactive versions of Lambda functions can still reference the subnets. Go through your Lambda functions in the AWS Console and delete any old versions that might be affected.
-
Verify event source mappings: Check if any event source mappings from services like Amazon MSK, self-managed Kafka, Amazon MQ, or Amazon DocumentDB are using the ENI.
-
Force detach using AWS CLI: You can try to force detach the network interface using the AWS CLI command: aws ec2 detach-network-interface --attachment-id <attachment-id> --force Note that this may not work for Lambda-managed attachments.
-
Check VPC configuration: If you recently updated a function to remove its VPC configuration, Lambda may require up to 20 minutes to delete the attached Hyperplane ENI.
If none of these steps resolve the issue, it's recommended to contact AWS Support for further assistance, as there could be an underlying issue specific to your account or setup. They can help internally remove the ENIs if necessary.
Sources
Want to delete Network Interface, but it is showing it is connected to lambda, but there is no lambda | AWS re:Post
Unable to Delete network interface due link with Lambda | AWS re:Post
how do i delete network interface that its type is lambda | AWS re:Post
Hi,
The following Knowledge Center article provides some tips on deleting ENIs created by AWS Lambda functions. Take a look; it might help you.
Relevant content
- asked a year ago
- asked 7 months ago
- AWS OFFICIALUpdated 2 years ago
I'm sorry to hear that this didn't resolve the issue. The next best step is to open a support case , they'll be able to provide more specific guidance for this situation.