Cannot delete VPC due undeletable ENIs

0

I'm having trouble deleting a VPC I no longer need.

The VPC was originally created through cloudformation for an EKS cluster. When I was done with that cluster I deleted the stack(s) and the cluster, but there are still some resources left over:

  • VPC itself
  • 2 subnets, route-tables, security groups,
  • 2 ENIs

It seems that the ENIs are the issue, all the other resources point to those and say I need to remove these first. But even with my root account credentials an attempt to detach these ENIs gives: "You do not have permission to access the specified resource."

posta 5 anni fa306 visualizzazioni
1 Risposta
0

Hello ronnyroe,

I have checked your AWS Account and I could see from CloudTrail that you were trying to detach 2 ENIs recently. However the operations failed with the error "You do not have permission to access the specified resource.". As you haven't provided the ENI id I am assuming that these are the 2 resources in question.

The 2 ENIs belong to your AWS Elastic Load Balancers (ELB) [1]. If you wish to delete the ENIs you need to first delete the related ELBs [2].

I hope that you find this information helpful. Please let us know if you need any further help.

Links:
[1] https://aws.amazon.com/elasticloadbalancing/
[2] https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-getting-started.html#delete-load-balancer

Regards,
awstomas

AWS
con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande