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年前305ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ