How I can delete a network interface that is connected with lambda function that does not exist anymore

0

Hi there,

I have faced issues with removing my network interface. AWS console says it's attached to the lambda function but that function was removed several months ago (screenshot) so I'm not sure what is wrong.

I've tried also some recommendations from https://repost.aws/questions/QUqNXHXZIPT7WFxmB4lCmaUA/cannot-delete-network-interface by trying to detach it but I still have no luck with that.

admin@ip-x-x-x-x:~$ aws ec2 detach-network-interface --attachment-id ela-attach-06300c91f31880db9 --region=us-east-1 --force

An error occurred (OperationNotPermitted) when calling the DetachNetworkInterface operation: You are not allowed to manage 'ela-attach' attachments.

Could you please let me know what else I need to try?

Gridics
gefragt vor 3 Monaten195 Aufrufe
2 Antworten
2
Akzeptierte Antwort

Hi,

The section 'Resolution' of https://repost.aws/knowledge-center/lambda-eni-find-delete should provide with the solution to delete the ENÌ.

Best,

Didier

profile pictureAWS
EXPERTE
beantwortet vor 3 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
0

Thanks, @Didier. I think I know the issue. I've several other Lambda functions in that VPC and somewhere in the docs, I saw that Lambda shares ENI with other functions in the same VPC.

Gridics
beantwortet vor 3 Monaten
  • Hi Gridics, glad that you found solution to your issue. Thanks for accepting my answer!

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen