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 réponse
0
Réponse acceptée

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
EXPERT
répondu il y a un an
profile pictureAWS
EXPERT
vérifié il y a un an
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions