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 回答
0
已接受的回答

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
专家
已回答 1 个月前
profile picture
专家
已审核 1 个月前
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
已回答 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则