All of my lambda functions only have five versions. Who is pruning the older versions? It serverless doing it?
Can I control the number of versions I keep around?
All of my lambda functions only have five versions. Who is pruning the older versions? It serverless doing it?
Can I control the number of versions I keep around?
I think it’s related to versionFunctions
option on the provider
Off the top of my head, I’m not sure if you can change.
Something is pruning me down to five copies. Maybe it is cloudformation?
The doc says all of the versions are kept: “These versions are not cleaned up by serverless, so make sure you use a plugin or other tool to prune sufficiently old versions. The framework can’t clean up versions because it doesn’t have information about whether older versions are invoked or not. This feature adds to the number of total stack outputs and resources because a function version is a separate resource from the function it refers to.”