serverless-plugin-warmup icon indicating copy to clipboard operation
serverless-plugin-warmup copied to clipboard

serverless-prune-plugin not working

Open yo-ga opened this issue 1 year ago • 1 comments

Hi,

We're currently using the serverless-prune-plugin to remove unused Lambda function versions, but we've encountered an issue where the plugin does not delete the previous unused versions of the warmup function as expected.

  1. Deploy the service multiple times, creating several versions of a Lambda function.
  2. Configure serverless-prune-plugin to keep only the latest N versions (e.g., N = 5).
  3. Deploy again and observe that older versions remain in AWS.
  • Expected Behavior
  1. Older versions beyond the specified N should be removed from AWS.
  • Actual Behavior
  1. The older versions remain in AWS even after the plugin is configured and the service is redeployed.
  • Additional Information
  1. Is there any specific configuration we might be missing to ensure these unused versions are pruned?

yo-ga avatar Jan 08 '25 09:01 yo-ga

Hi @yo-ga ,

I don't use serverless-prune-plugin so I have no idea how that plugin works or why it doesn't work in this case.

juanjoDiaz avatar Jan 26 '25 18:01 juanjoDiaz