mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
1.1 KiB
1.1 KiB
Read this on the main serverless docs site
AWS - Rollback Function
Rollback a function service to a specific version.
serverless rollback function --name <name> --version <version>
Options
--nameor-nThe name of the function which should be rolled-back--versionor-vThe version to which the function should be rolled back
Examples
AWS
At first you want to run serverless deploy list functions to see all the deployed functions of your service and their corresponding versions.
After picking a function and the version you can run the serverless rollback function command to rollback the function.
E.g. serverless rollback function -f my-function -v 23 rolls back the function my-function to the version 23.