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
已提問 3 個月前檢視次數 195 次
2 個答案
2
已接受的答案

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
專家
已回答 3 個月前
profile picture
專家
已審閱 2 個月前
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
已回答 3 個月前
  • Hi Gridics, glad that you found solution to your issue. Thanks for accepting my answer!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南