Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't delete Lambda@Edge even though previously associated CloudFront distribution was already destroyed

Even though CloudFront distribution which was assiciated with a number of Lambda functions deployed @edge was already destroyed a couple of days ago, I still can't delete my lambda: it keeps referencing me to the "documentation for Deleting Lambda@Edge Functions and Replicas." which says only one thing: you should wait for a couple of hours (not days)

Any suggestions what else could be preventing the lambda from being deleted?

P.S. I also double-checked that ALL versions of lambda do not have an association with any cloudfront distributions

like image 482
Andrei Lesnitsky Avatar asked Oct 24 '25 01:10

Andrei Lesnitsky


1 Answers

We were in the same boat... couldn't delete the functions for days.

How we fixed it:

  1. Create a new distribution
  2. Associate the lambda with the new distribution
  3. Remove the association you just made
  4. Delete the lambda versions
  5. Delete the lambda

There might be some time in between these steps, but that finally got us unstuck!

like image 200
aiguofer Avatar answered Oct 26 '25 15:10

aiguofer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!