Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
Regenerated parsers (#124)
Browse files Browse the repository at this point in the history
* updated generate docs

* update to parsers
  • Loading branch information
ojkelly authored Sep 28, 2018
1 parent 26b8f36 commit cdc6451
Show file tree
Hide file tree
Showing 10 changed files with 70 additions and 9 deletions.
59 changes: 59 additions & 0 deletions documentation/content/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,65 @@ $ kombustion generate [template file]
$ kombustion generate path/to/cloudformation/stack.yaml
```


__Options__

#### `--output-directory`, `-d`

_(Optional) Set the directory to write the generated files in._

#### `--region`, `-r`

_(Optional)Set the region to deploy into._

#### `--stack-name`

_(Optional) Set the stack name._

If not provided a stack name is derived from `Title` in `kombustion.yaml`, the file name of the
stack, and the environment in the following pattern `{Title}-{FileName}-{Environment}`.

If you do not provide `--stack-name` you must provide `--environment`.

#### `--environment`, `-e`

_(Optional) The environment to deploy to._

Environment config to use as defined in ./kombustion.yaml.

If `AccountIDs` are listed under the environment, then you will only be able to deploy into that
account.

If `Parameters` are listed under the environment, they will be added to the stack.


#### `--param`, `-p`

_(Optional) Specify CloudFormation parameters._

Parameters are also sourced from `kombustion.yaml`, but paramteres passed via the cli have precedence.
Anything you pass via this option, will be used instead of whats in `kombustion.yaml`.

```bash
$ kombustion upsert \
--param ParamKeyOne=ParamValueOne, ParamKeyTwo=ParamValueTwo \
path/to/cloudformation/stack.yaml
```

#### `--generate-default-outputs`, `-b`

_(Optional) Disable generation of outputs for Base AWS types_


#### `--read-parameters`

_(Optional) Read parameters from a CloudFormation parameters file_


#### `--write-parameters`, `-w`

_(Optional) Write parameters to a CloudFormation paramters file_

---

### `upsert`
Expand Down
4 changes: 3 additions & 1 deletion generate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ const sourceDir = "./generate/source/"
func init() {
log.Println("Creating directories")

os.RemoveAll(parsersDir)
os.RemoveAll(typesDir)
os.RemoveAll(propertiesDir)
os.RemoveAll(resourcesDir)

os.Mkdir(parsersDir, 0744)
os.Mkdir(propertiesDir, 0744)
Expand Down
2 changes: 1 addition & 1 deletion pkg/parsers/properties/ByteMatchSetByteMatchTuple.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/parsers/properties/ByteMatchSetFieldToMatch.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/parsers/properties/IPSetIPSetDescriptor.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/parsers/properties/SizeConstraintSetSizeConstraint.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/parsers/properties/SqlInjectionMatchSetFieldToMatch.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/parsers/properties/XssMatchSetXssMatchTuple.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cdc6451

Please sign in to comment.