forked from serverless/serverless
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue-1604
- Loading branch information
Showing
60 changed files
with
1,504 additions
and
618 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<!-- | ||
title: Serverless Rollback CLI Command | ||
menuText: Rollback | ||
menuOrder: 9 | ||
description: Rollback the Serverless service to a specific deployment | ||
layout: Doc | ||
--> | ||
|
||
<!-- DOCS-SITE-LINK:START automatically generated --> | ||
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/providers/aws/cli-reference/rollback) | ||
<!-- DOCS-SITE-LINK:END --> | ||
|
||
|
||
# Rollback | ||
|
||
Rollback the Serverless service to a specific deployment. | ||
|
||
```bash | ||
serverless rollback --timestamp timestamp | ||
``` | ||
|
||
## Options | ||
- `--timestamp` or `-t` The stage in your service you want to display information about. | ||
- `--verbose` or `-v` Shows any Stack Output. | ||
|
||
## Provided lifecycle events | ||
- `rollback:initialize` | ||
- `rollback:rollback` | ||
|
||
## Examples | ||
|
||
### AWS | ||
|
||
At first you want to run `serverless deploy list` to show your existing deployments. This will provide you with a list of the deployments stored in your S3 bucket. You can use the timestamp of one of these deployments to set your infrastructure stack to this specific deployment. | ||
|
||
**Example:** | ||
|
||
``` | ||
$ serverless deploy list | ||
Serverless: Listing deployments: | ||
Serverless: ------------- | ||
Serverless: Timestamp: 1476790110568 | ||
Serverless: Datetime: 2016-10-18T11:28:30.568Z | ||
Serverless: Files: | ||
Serverless: - compiled-cloudformation-template.json | ||
Serverless: - mail-service.zip | ||
Serverless: ------------- | ||
Serverless: Timestamp: 1476889476243 | ||
Serverless: Datetime: 2016-10-19T15:04:36.243Z | ||
Serverless: Files: | ||
Serverless: - compiled-cloudformation-template.json | ||
Serverless: - mail-service.zip | ||
Serverless: ------------- | ||
Serverless: Timestamp: 1476893957131 | ||
Serverless: Datetime: 2016-10-19T16:19:17.131Z | ||
Serverless: Files: | ||
Serverless: - compiled-cloudformation-template.json | ||
Serverless: - mail-service.zip | ||
Serverless: ------------- | ||
Serverless: Timestamp: 1476895175540 | ||
Serverless: Datetime: 2016-10-19T16:39:35.540Z | ||
Serverless: Files: | ||
Serverless: - compiled-cloudformation-template.json | ||
Serverless: - mail-service.zip | ||
Serverless: ------------- | ||
Serverless: Timestamp: 1476993293402 | ||
Serverless: Datetime: 2016-10-20T19:54:53.402Z | ||
Serverless: Files: | ||
Serverless: - compiled-cloudformation-template.json | ||
Serverless: - mail-service.zip | ||
$ serverless rollback -t 1476893957131 | ||
Serverless: Updating Stack… | ||
Serverless: Checking Stack update progress… | ||
..... | ||
Serverless: Stack update finished… | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.