Skip to content

Commit

Permalink
Fixed typo, updated package.json and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nicka committed Nov 9, 2016
1 parent 9d95c79 commit db542b1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
23 changes: 21 additions & 2 deletions README.md
Expand Up @@ -8,15 +8,34 @@

Plugin for Serverless Framework v1.x which compares your local AWS CloudFormation templates against deployed ones.

## Usage
# Usage

```bash
serverless deploy diff --stage REPLACEME --region REPLACEME
```

<img width="1255" alt="screen shot 2016-11-05 at 14 53 04" src="https://cloud.githubusercontent.com/assets/195404/20030536/9e1a552c-a367-11e6-8e6d-2043f2a5d038.png">

## Install
## Command options

```bash
--diffTool ksdiff
```

Custom diff tool:

>Defaults to `diff`

```bash
--localTemplate foo.json
```

Custom CloudFormation template to diff against:

>Defaults to `./serverless/cloudformation-template-update-stack.json`
# Install

Execute npm install in your Serverless project.

Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -12,7 +12,7 @@ class ServerlessPlugin {

this.commands = {
diff: {
usage: 'Compares locale AWS CloudFormation templates against deployed ones',
usage: 'Compares local AWS CloudFormation templates against deployed ones',
lifecycleEvents: ['diff'],
options: {
diffTool: {
Expand Down
8 changes: 8 additions & 0 deletions package.json
Expand Up @@ -18,6 +18,14 @@
"repository": {
"git": "https://github.com/nicka/serverless-plugin-diff"
},
"homepage": "https://github.com/nicka/serverless-plugin-diff",
"keywords": [
"aws",
"diff",
"lambda",
"plugin",
"serverless"
],
"dependencies": {
"aws-sdk": "^2.6.15",
"child-process-promise": "^2.2.0",
Expand Down

0 comments on commit db542b1

Please sign in to comment.