Unable to delete network interfaces attached to VPC Endpoint

0

I have two Network Interfaces that are attached to a VPC Endpoint. When I try delete the VPC Endpoint I get the following error: Operation is not allowed for requester-managed VPC endpoints for the service. When I try detach the associated Network Interfaces I get: The network interface can't be detached (Network interface is in use by another service).

After some googling and reading this forum, I have seen suggestions something is still using a Network Interface or the VPC Endpoint but I cannot figure out what.

preguntada hace 3 años2435 visualizaciones
3 Respuestas
1

Maybe this post will help to find a ressource attached to the interface: https://aws.amazon.com/premiumsupport/knowledge-center/troubleshoot-dependency-error-delete-vpc/ and the CLI command describe-network-interfaces: https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-network-interfaces.html

respondido hace 2 años
0

I ended up answering my own question. I had an Aurora Serverless DB in a VPC, which creates a VPC endpoint and related network interfaces which are considered "requester-managed". Once I deleted the database, the above resources disappeared.

respondido hace 3 años
0

Though it had been 2 years ago. This is the question where Google search of ENI “Network interface is in use by another service” will bring at the top. Let me add some more information I found useful. I had the similar issue as the question. I could not figure out what held my ENI. Use this CLI (https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-network-interfaces.html) as rePost-User-5170769 pointed out. For example, if you search eni-123412341234 (I converted every unique values to 123412341234) in the below snippet of output of aws ec2 describe-network-interfaces, you see that Description: field has the hint.

            “Description”: “EFS mount target for fs-123412341234 (fsmt-123412341234)”,  <=== this is a sample hint you want
            “Groups”: [
                {
                    “GroupName”: “security-group-for-inbound-nfs-d-123412341234”,
                    “GroupId”: “sg-123412341234”
                }
            ],
            “InterfaceType”: “efs”,
            “Ipv6Addresses”: [],
            “MacAddress”: “<snip>“,
            “NetworkInterfaceId”: “eni-123412341234”, <=== this is your search point

I deleted the unused EFS resources and then the VPC deletion was successful.

respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas