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?

preguntada hace 2 años565 visualizaciones
3 Respuestas
0
respondido hace 2 años
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
INGENIERO DE SOPORTE
respondido hace 2 años
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.

respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas