- Newest
- Most votes
- Most comments
Hi
Please check there us answer in repost https://repost.aws/questions/QUNt85nsSrSBiBNxr5v3hGtg/cannot-delete-network-interface
Permissions: The error message strongly suggests an issue with your current permissions for interacting with these network interfaces. It's possible that even as a root user, some granular permissions related to EKS were not cleaned up completely during the cluster deletion.
Note: It's generally not recommended to use the root user for creating AWS resources. It's much safer to create IAM users or roles with specific, limited permissions tailored to the tasks they need to perform
Try with CLI:
aws ec2 describe-network-interfaces --network-interface-ids eni-0e8b86434e3****** eni-004cf0fdf80******
Pay special attention to the Attachment section and any other resource IDs listed.
Force Deletion:
aws ec2 detach-network-interface --attachment-id <attachment-id> --force
Relevant content
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
Hi GK,
Thank you very much for your advice on resolving the network interface issue I was facing. I followed your suggestions to review the permissions and tried to detach the network interfaces using the CLI as you recommended. Although I initially continued to face permission issues, it ultimately led me to discover that the network interfaces were managed by Elastic Load Balancing. After removing the associated load balancers, the network interfaces were automatically deleted, and the issue was resolved.
Your guidance was instrumental in pointing me in the right direction, and I appreciate your help. Thanks again for your support and for sharing your expertise!
Best regards, Jerry