Cannot delete network interface

0

Hello,

I have a problem to delete network interface. I tried to create EKS cluster with Terraform. I created it successfully but cannot delete the cluster due to the network interface. All ec2 instances are deleted and remaining resources are cluster, vpc, subnet, routing table, security group and network interface. All resource are not deleted due to the network interface. When I tried to delete, it says "Network interface is currently in use and is of type "interface". I searched related info but they all suggested to delete attached instances. I looked at the network interface but couldn't see any attached instances.

Instance details Instance ID: - Allocation ID: - instance owner: (my account) device index: 1

Can someone help me find out the way to delete network interface or which one to check?

Thanks

Jin

2 Antworten
0
Akzeptierte Antwort

Hello.

Do you know which resource the network interface was created from?
I think it's probably an ENI related to EKS, so try deleting EKS first.
Also, if ALB etc. were deployed together, I think there is a possibility that it is the ENI of ALB.

If you check the "Description" of the ENI, you may be able to determine which resource it was created from.
https://repost.aws/knowledge-center/troubleshoot-dependency-error-delete-vpc

Review the Description to see which resources the network interface is attached to.

profile picture
EXPERTE
beantwortet vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat
0

wow thanks all. It works. (deleting EKS cluster!) I couldn't think about it. I thought I should delete all underlying resources before deleting the cluster. The answer is deleting the cluster first!

Jin
beantwortet vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen