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
asked 3 months ago177 views
2 Answers
2
Accepted Answer

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
EXPERT
answered 3 months ago
profile picture
EXPERT
reviewed a month ago
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
answered 3 months ago
  • Hi Gridics, glad that you found solution to your issue. Thanks for accepting my answer!

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