내용으로 건너뛰기

The network interface can't be deleted. Reason: Network interface is currently in use.

0

Hello everyone, I have been working on a personal project and encountered a strange issue today. I am unable to clean up my resources properly. After finishing my work, I deleted EC2 instances, but I'm facing difficulty in deleting Security Groups, non-default VPCs, Subnets, and Network ACLs. Most of them indicate that I have associated network interfaces, and I've tried to delete them, but they can't be removed. I have gone through the AWS documentation to delete the interfaces using the UI, but it shows that they are still in use. I have also released elastic IPs, but to no avail. I would appreciate any help or suggestions you may have. Thank you in advance!

질문됨 4년 전9.5천회 조회

2개 답변
0

1. Log in to the AWS Management Console and navigate to the EC2 service. 2. From the EC2 console, select "Network Interfaces" from the sidebar menu. 3. Locate the network interface you want to delete and check the "Attachment Information" column to see if it's attached to an EC2 instance. 4. If the network interface is attached to an EC2 instance, select the network interface from the list, choose "Actions", and then "Detach Network Interface". 5. Before detaching the network interface, make sure to stop any processes or services running on the EC2 instance that might be using the interface. Otherwise, the detachment process will fail. 6. Once the network interface is detached, try to delete it again. If the deletion still fails, you may need to contact AWS support for further assistance.

답변함 4년 전

0

Hi,

You can also try the script in this article: https://repost.aws/knowledge-center/troubleshoot-dependency-error-delete-vpc which can help identify dependencies with the ENI.

Hope it helps ;)

전문가

답변함 3년 전

  • Thanks for your prompt response . I tired it, but I couldn't resolve the issue.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠