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개 답변
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
전문가
답변함 일 년 전
profile pictureAWS
전문가
검토됨 일 년 전
  • 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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠