serverless/docs/providers/aws/cli-reference/rollback-function.md
Philipp Muens 581720217e Add docs
2017-05-17 12:46:46 +02:00

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

  • --name or -n The name of the function which should be rolled-back
  • --version or -v The 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.