By using AWS re:Post, you agree to the AWS re:Post Terms of Use

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 Answer
2
Accepted Answer

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
EXPERT
answered 8 months ago
profile picture
EXPERT
reviewed 8 months ago
profile pictureAWS
EXPERT
reviewed 8 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions