- Newest
- Most votes
- Most comments
This is a common issue when dealing with network interfaces (ENIs) in AWS, especially those created by AWS services. The problem you're experiencing is likely due to the ENI being owned or managed by an AWS service, rather than being directly controlled by your account.
In many cases, these ENIs are associated with resources like NAT Gateways, Load Balancers, VPC Endpoints, or even services like ECS (Elastic Container Service). Even after the parent resource or service is deleted, the ENI can sometimes remain in a "stuck" state.
Here are some steps you can try to resolve this issue:
-
Wait for some time: Sometimes, it can take up to 24-48 hours for all resources to be fully released and deleted by AWS backend processes.
-
Check for any remaining resources: Ensure that all related resources like EC2 instances, load balancers, NAT gateways, or VPC endpoints have been completely removed.
-
Verify IAM permissions: Although you mentioned having the right permissions, double-check that your IAM user or role has the necessary permissions to delete network interfaces.
-
Identify the owning service: Try to determine which AWS service created the ENI. This information is often available in the ENI's description field in the AWS console.
-
Delete the parent resource: If you can identify the parent resource or service, try deleting it again, which should trigger the deletion of the associated ENI.
If none of these steps work, your best option is to contact AWS Support. Even without a paid support plan, you can open a case under the "Account and Billing" category for free. Explain the situation, provide the ENI ID, and mention that you've already deleted the associated resources but the ENI remains stuck. AWS support should be able to manually release the orphaned ENI for you.
In some rare cases, the issue might be related to an IAM role being deleted before AWS could delete the ENI. If this is the case, recreating the necessary IAM role temporarily might allow AWS to complete the ENI deletion process.
Remember, it's important not to force-delete resources like VPCs or subnets while there are still ENIs attached, as this can lead to further complications. Focus on resolving the ENI issue first, and then the other resources should be deletable.
Sources
Unable to delete network interface | AWS re:Post
Issues deleting VPC | AWS re:Post
I can't delete my ENI because it's currently in use and is of type "interface" (poiting to ECS which is already deleted) | AWS re:Post
Relevant content
- asked a year ago
- asked 6 years ago
- asked 3 years ago