Skip to content

Commit

Permalink
update readme for create/delete stack
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolcik committed Mar 6, 2018
1 parent af40c4e commit 32c6bab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,12 @@ Then type path and name of new configuration file.

To create new stack you have to type:

``~ $ perun --mode=create-stack
--template=<PATH TO YOUR TEMPLATE>
--stack=<NAME OF YOUR STACK>
``~ $ perun create-stack <NAME OF THE STACK> <PATH TO YOUR TEMPLATE
``

To destroy stack just type:

``~ $ perun --mode=delete-stack
--stack=<NAME OF YOUR STACK>
``~ $ perun delete-stack <NAME OF THE STACK>
``

### Configuration file
Expand Down Expand Up @@ -123,7 +120,7 @@ mfa_serial = <IDENTIFICATION NUMBER FOR MFA DEVICE>

### Working with stacks

Perun allows to create and destroy stacks.
Perun allows to create and destroy stacks.

To create stack it uses your template. It can be JSON or YAML format.

Expand All @@ -139,7 +136,7 @@ Example JSON template which describe S3 Bucket:
}
```

If you want to destroy stack just type its name.
If you want to destroy stack just type its name.
Before you create stack you should validate it with perun :wink:.

## License
Expand Down
4 changes: 2 additions & 2 deletions cliparser/cliparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func ParseCliArguments(args []string) (cliArguments CliArguments, err error) {

configure = app.Command(ConfigureMode, "Create your own configuration mode")

createStack = app.Command(CreateStackMode, "Creates a stack on aws")
createStackName = createStack.Arg("stack", "An AWS stack name.").Required().String()
createStack = app.Command(CreateStackMode, "Creates a stack on aws")
createStackName = createStack.Arg("stack", "An AWS stack name.").Required().String()
createStackTemplate = createStack.Arg("template", "A path to the template file.").Required().String()

deleteStack = app.Command(DestroyStackMode, "Deletes a stack on aws")
Expand Down

0 comments on commit 32c6bab

Please sign in to comment.