Unable to delete network interface

0

Failed to detach the network interface. API error: "You do not have permission to access the specified resource.". I am getting this error. Delete vpc and network interface

asked a month ago229 views
1 Answer
2

That happens when the interface (ENI, elastic network interface) is owned by an AWS service. For example, if the ENI belongs to a NAT gateway, load balancer, VPC endpoint, or RDS database instance, you can't and shouldn't try to delete the network interface directly. Instead, you should delete the NAT gateway or other resource, and the service will delete the interface associated with it automatically.

You can identify the resource typically from the "Description" field of the ENI. For example, for a NAT gateway, it'll show Interface for NAT Gateway nat-01234567890abcdef that identifies the specific NAT gateway.

EXPERT
Leo K
answered a month ago
profile picture
EXPERT
reviewed a month ago
  • Yes, @Venkatesh, That ENI might be connected with ELB, RDS

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