confd-template
a cli
for generating confd templates using a populated KV backend
$ confd-template --help
a cli for generating confd templates using a populated KV backend
Usage:
confd-template [flags]
Flags:
--backend string configuration backend (default "ssm")
--delimiter string key delimiter (default "/")
--filter string optional regex key filter
--format string template format (default "yaml")
-h, --help help for confd-template
--level string log level (default "info")
--out string output template path
--prefix string key prefix to scan (default "/")
Getting Started
Basic cli usage is shown below. This will use the default backend (ssm) and render format (yaml) to output a confd template containing all of the keys at prefix "/secrets/production-us-east-1" that begin with "/foo/" or "/bar/".
$ confd-template --level debug --out config.yml.tmpl --prefix /secrets/production-us-east-1 --filter "^/(foo|bar)/*"
Installation
You can download the latest release from GitHub
$ wget https://github.com/cludden/confd-template/releases/download/v{version}/confd-template-{version}-{os}-amd64
Ensure the binary is in your path and is executable (these commands may require sudo
)
$ mv confd-template-{version}-{os}-amd64 /usr/local/bin/confd-template
$ chmod +x /usr/local/bin/confd-template
Todo
General:
Backends:
Formatters:
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
)
- Commit your changes using conventional changelog standards (
git commit -am 'feat: adds my new feature'
)
- Push to the branch (
git push origin my-new-feature
)
- Ensure lint/tests are all passing
- Create new Pull Request
License
Copyright (c) 2018 Chris Ludden
Licensed under the MIT License