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 Risposte
0
Risposta accettata

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
ESPERTO
con risposta un mese fa
profile picture
ESPERTO
verificato un mese fa
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
con risposta un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande