detaching eni from subnet error

0

I am having trouble deleteing my VPC's, and it incured a lot of money. I need to detach eni's from subnet and receiveing errors: An error occurred (AuthFailure) when calling the DetachNetworkInterface operation: You do not have permission to access the specified resource. I want to stop the charges at least for now for all VPC resources connected to this eni that cannot be deleted. Is it possible?

asked a month ago310 views
1 Answer
1

Hello.

First, you need to delete the AWS service that is using that ENI.
For example, are there any EC2s, ALBs, other VPC endpoints or NAT Gateways left?
If you were using something like RDS Proxy, you need to remove RDS Proxy.
Have you ever created a Lambda connected to a VPC?
If these resources remain, the network interface cannot be deleted unless they are deleted.
I think reading the "Description" of the ENI you want to delete will help you determine which AWS service is using the ENI.
Also, try identifying the AWS service by reading the following documentation.
https://repost.aws/knowledge-center/troubleshoot-dependency-error-delete-vpc
https://repost.aws/knowledge-center/vpc-delete-requester-managed-endpoint

profile picture
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
Kallu
reviewed a month ago
  • well, thats definetly not the answer I was expected. 1st thing, my account ID is 495648066120, so please tell billing account to remove VPC payment from my next bill. 2nd thing, in this linked video, you can see exactly what the error is. cannot delete anything while the eni is claiming to be attached. https://drive.google.com/file/d/1Ef6Jc0LXSdCI0ez_m2funOjBnGEFdyOC/view?usp=sharing you need to enable force deleteion for my account. if that is something that can be enabled. because, currently, using force checkbox still claims i am missing permissions to access this network interface.

  • If you watch the video, the "Description" of ENI contains a description that seems to be used in EKS. So, if you delete all EKS resources from the EKS screen instead of ENI, I think ENI will disappear along with it.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions