Cannot Delete Network Interface

0

I have a network interface that was attached to an instance. Once the instance was terminated, I tried to delete this network interface. The error was: "The network interface is currently in use." The interface was reported as available but also reported as attached to the old, dead instance. The network interface only has a static IP and is not associated to an Elastic IP. When I try to associate the network interface with a new instance, the error is: "An internal error has occurred." Any ideas how to force delete a network interface?

已提問 2 年前檢視次數 565 次
3 個答案
0
已回答 2 年前
0

Hello data-hyper,

You may wish to try forcing a detachment with the "--force" flag set on a detach-network-interface command as per these docs: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/detach-network-interface.html

As this issue relates to a specific resource under your account, I would recommend that you reach out to AWS Support for further assistance if the above recommendation does not resolve the issue.

AWS
支援工程師
已回答 2 年前
0

I got an error trying to delete the network interface

aws ec2 detach-network-interface --force --attachment-id ela-attach-#########

An error occurred (OperationNotPermitted) when calling the DetachNetworkInterface operation: You are not allowed to manage 'ela-attach' attachments.

已回答 1 年前

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

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

回答問題指南