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!

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容