amazon web services - Lambda in VPC won't create new ENI after an ENI has been manually detached from subnet -


i have run problem lambda functions can no longer create new eni's in vpc subnet once eni has been detached , deleted subnet. have reproduced on 2 different vpc's , multiple subnets.

here steps used reproduce this:

  1. create lambda function , associate vpc , subnet.
  2. execute lambda function cause create new eni in subnet. function able access rds database in vpc.
  3. manually detach , delete eni subnet.
  4. execute lambda function again. no eni created. lambda function unable access rds database.

i repeated these steps across multiple subnets in 2 vpc's , lambda functions unable create new eni's in of subnets.

it seemed vpc subnet permanently unable have new eni's created lambda functions after letting things sit overnight ran function again morning , able create eni. aws must have automated process cleaned up. so, tested detaching , deleting again , i'm in state lambda function won't create new eni.

not sure going on here. i'm not selecting 'force detach' when detaching eni. doing wrong?

from research have done afternoon appears limitation of lambda functions running in vpc , has been on year. there 6 hour delay in clean of eni's after lambda function has been deleted. manual detachment , deletion of eni made things worse because seems eni isn't removed until after 6 hour delay. manual deletion seems put eni in sort of orphaned state prevents new eni's being created in subnet until after aws has cleaned old one.

https://www.reddit.com/r/aws/comments/4fncrl/dangling_enis_after_deleting_an_invpc_lambda_with/

https://github.com/hashicorp/terraform/issues/5767

so seems solution forcing clean delete eni , subnet in. :-/

i let serverless remove command run long time (without me speeding things along manually deleting eni) , did finish took 40 minutes. eni left behind else cleaned up. imagine in 6 hours eni disappear.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -