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년 전

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

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

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

관련 콘텐츠