Rollback and Prune previous versions #316
Labels
feature-request
A feature should be added or improved.
l
Effort estimation: large
module/cli-ext
p3
This is a minor priority issue
queued
Describe the feature
This may be more a pertinent to using SAM template's
AutoPublishAlias
orSemanticVersion
rather than dotnet CLI, but deployment creates several artifacts in the S3 deployment bucket and never removes them. It's not clear how to get back to a previous version (either via CLI or in Console, as no changeset history is listed?), and I've only seen suggestions for manually cleaning up old stuff or awkward lifecycle policies or installing random 1stparty or 3rdparty plugins to do it for you.The Serverless Framework's prune plugin handles this for the Lambda versioning, and I think it already cleans up old deployment artifacts?
Use Case
Proposed Solution
Specifying a major/minor version number in template and remembering to update it when you want an explicit version, or deploying with an
--autoversion
flag; either should save separate changesets (is that how you're supposed to do it with Cloudformation Stacks?). Then:or
or
To get back to the indicated version.
Also, specifying something like
--retainVersions 5
to keep the last 5 deployments for rollback.Other Information
No response
Acknowledgements
Targeted .NET platform
Any
CLI extension version
Package Id Version Commands
amazon.lambda.testtool-3.1 0.10.0 dotnet-lambda-test-tool-3.1
amazon.lambda.tools 5.10.4 dotnet-lambda
dotnet-xscgen 2.0.662 xscgen
Environment details (OS name and version, etc.)
Windows
The text was updated successfully, but these errors were encountered: