No Permission to delete network interface

1

I was learning terraform by cloning some tutorial-based git repos (I used many) but it seems that the destroy function wasn't working fully. I have a subnet and VPC in us-east-1 which I am trying to get rid of, but I do not have permissions to delete the VPC or Subnet because there are two network interfaces attached. When I try to detach or delete the Network Interfaces, I get this error: Failed to detach the network interface. API error: "You do not have permission to access the specified resource.".

I imagine this is because they were provisioned with Terraform, but even as Root I have no control. The Terraform repos are all gone as well now, so I can't run another destroy function.

How can I force delete these? I can't leave them for much longer or I'll get charged.

已提問 1 年前檢視次數 3034 次
1 個回答
0
已接受的答案

Hi, ENIs are still attached to a specific resource, you need to identify that first.

Try these steps:

  1. Go to Network Interfaces under EC2.
  2. Select the ENI Details tab.
  3. Review the Description to find which resource the elastic network interface is attached to.
  4. Delete the attached service.

Let me know

profile picture
專家
已回答 1 年前
profile pictureAWS
專家
已審閱 1 年前
  • Turned out to be two RDS instances, thanks. For anyone still stuck after this: ensure that your selected region matches your VPC's region when you search for your resource, I made that mistake earlier which is why I couldn't find it.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南