Hi AWS Team and Community,
I am experiencing an issue where a network interface (ENI) remains stuck in an "in-use" state, even though the Load Balancer (ELB) that created it has already been deleted. I am unable to detach or delete the ENI, and I receive permission-related errors even as the root user.
The ENI (eni-0478865b6565f3fe7) was automatically created by an Elastic Load Balancer (ELB).
The ELB has already been deleted, but the ENI is still marked as "in-use" in AWS.
No EC2 instances, NAT Gateways, or Target Groups are associated with this ENI.
AWS CLI and Console do not allow detachment or deletion.
Error Messages & Commands Tried:
Checking ENI Status
aws ec2 describe-network-interfaces --network-interface-ids eni-0478865b6565f3fe7 --query "NetworkInterfaces[*].{Owner:OwnerId, Status:Status, Description:Description}"
Response:
[
{
"Owner": "911167914071",
"Status": "in-use",
"Description": "ELB abd5993a57f9b45bda4b65074d003336"
}
]
This confirms the ENI still exists and is stuck in "in-use", but the ELB that created it no longer exists.
Checking for Load Balancers:
aws elbv2 describe-load-balancers --region us-east-2
Response:
json
Copy
Edit
{
"LoadBalancers": []
}
No active ELBs exist in my account.
Checking for Instances Using This ENI:
aws ec2 describe-instances --filters "Name=network-interface.network-interface-id,Values=eni-0478865b6565f3fe7"
Response:
{
"Reservations": []
}
No EC2 instances are using this ENI.
Trying to Detach the ENI
aws ec2 detach-network-interface --attachment-id eni-attach-0f95151f6eb2af805 --force
Error Message:
An error occurred (InvalidAttachmentID.NotFound) when calling the DetachNetworkInterface operation: The interface attachment 'eni-attach-0f95151f6eb2af805' does not exist.
AWS does not recognize the attachment ID, even though the ENI is still marked as "in-use".
Trying to Modify ENI to Allow Deletion
aws ec2 modify-network-interface-attribute --network-interface-id eni-0478865b6565f3fe7 --no-source-dest-check
Error Message:
An error occurred (AuthFailure) when calling the ModifyNetworkInterfaceAttribute operation: You do not have permission to access the specified resource.
Even as the root user, AWS blocks modification of this ENI.
Trying to Delete the ENI
aws ec2 delete-network-interface --network-interface-id eni-0478865b6565f3fe7
Error Message:
An error occurred (InvalidParameterValue) when calling the DeleteNetworkInterface operation: Network interface 'eni-0478865b6565f3fe7' is currently in use.
The ENI is still "in-use" and cannot be deleted manually.
Since the ENI is stuck and AWS does not allow detachment, modification, or deletion, can AWS manually release this ENI?
There are no remaining ELBs, EC2 instances, or target groups associated with this ENI.
I need AWS to forcefully remove this orphaned ENI from my account.
I appreciate any help from AWS Support or the Community. Thank you!