Reputation: 1663
I am using the serverless framework to deploy a production system on AWS Lambda. I recently learned of the serverless deploy list
and serverless rollback --timestamp timestamp
commands, which seem very useful in case of emergency.
Is there a way to store/list more than five previous versions? I do not mind using extra storage, so I would prefer to keep many more versions (maybe 100?) available for rollback if possible.
Upvotes: 0
Views: 820
Reputation: 2954
As far as I know serverless blocks the number of versions to 5, from this PR https://github.com/serverless/serverless/pull/4134/files
Did a quick test and you can backup the builds to other bucket and when you want to rollback you just need to move them again to serverless bucket then if you do list and rollback you can use them again.
This is actually an interesting case that could be easily done in a serverless plugin.
Upvotes: 2
Reputation: 121
what is the framework you are using to deploy? I am using the serverless framework and this framework tried to hold all versions which I deployed by default. That pushed me to use a special plugin for clearing the storage after every deploy because storage is limited (75 GB)
https://serverless.com/plugins/serverless-prune-plugin/
Upvotes: 0