2 Answers
- Newest
- Most votes
- Most comments
0
I have seen it take up to an hour. Lambda will delete the interface itself.
Check after an hour.
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
answered a month ago
Relevant content
- asked 6 months ago
- asked 9 months ago
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
I have waited for more than 2 hours and no change. I still get the same message.