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 Respostas
0
Resposta aceita

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
ESPECIALISTA
respondido há um mês
profile picture
ESPECIALISTA
avaliado há um mês
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
respondido há um mês

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas