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?

3 Answers
0
answered 2 years ago
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
SUPPORT ENGINEER
answered 2 years ago
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.

answered 10 months ago

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