Unable to Release Network Interfaces After Manually Deleting EKS Cluster

0

Hello AWS Community,

I recently encountered an issue where I manually deleted an EKS cluster named "demo-cluster" from the AWS Management Console instead of using the eksctl delete cluster command. After deletion, I have been unable to detach or delete two network interfaces (IDs: eni-0e8b86434e3****** and eni-004cf0fdf80******). Despite being logged in as the root user, I keep receiving the following error message: "You do not have permission to access the specified resource."

Here are the steps I've tried so far without success:

  • Attempting to detach the network interfaces via the AWS Console.
  • Checking for any dependent services that might be using these interfaces.
  • Ensuring that I'm operating in the correct region (us-west-1).

I am looking for any suggestions or guidance on how to resolve this issue, as it is impacting my ability to manage my resources efficiently.

Thank you in advance for your help!

1 個回答
2
已接受的答案

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

profile picture
專家
GK
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
profile pictureAWS
專家
已審閱 1 個月前
  • 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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南