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."

已提问 5 年前307 查看次数
1 回答
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
已回答 5 年前

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

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

回答问题的准则