By using AWS re:Post, you agree to the AWS re:Post Terms of Use

Unable to Delete network interface due link with Lambda

0

Dear all,

I'm unable to delete network interface. The message I get is that "Network interface is currently in use and is of type lambda . Possible owning resource is <lambda name>, however I had first the removed VPC from the configuration and later I have deleted lambda.

I have followed the instructions in https://repost.aws/knowledge-center/lambda-eni-find-delete

I have ran out of ideas. Anyone has any ideas?

asked a month ago52 views
2 Answers
0

I have seen it take up to an hour. Lambda will delete the interface itself.

Check after an hour.

profile picture
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
  • I have waited for more than 2 hours and no change. I still get the same message.

0

Hello,

you could also:

  • Check for old Lambda versions: Sometimes, old inactive versions of Lambda functions can still reference the subnets, causing their network interfaces to appear in use. Go through your Lambda functions in the AWS Console and manually delete any old versions that might be affected.

  • Verify Lambda execution role permissions: Ensure that the Lambda execution role has the necessary permissions to delete network interfaces. The role should have the following EC2 permissions:

ec2:CreateNetworkInterface

ec2:DescribeNetworkInterfaces

ec2:DeleteNetworkInterface

  • Use AWS CLI to force detach: If the above steps don't work, you can try to force detach the network interface using the AWS CLI:
aws ec2 detach-network-interface --attachment-id <attachment-id> --force
  • Contact AWS Support: If none of the above steps resolve the issue, it may be worth contacting AWS Support for further assistance, as there could be an underlying issue specific to your account or setup
AWS
answered a month ago

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