confd-template

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2018 License: MIT Imports: 1 Imported by: 0

README

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:

  • test test test

Backends:

  • ssm

Formatters:

  • yaml
  • json

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes using conventional changelog standards (git commit -am 'feat: adds my new feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Ensure lint/tests are all passing
  6. Create new Pull Request

License

Copyright (c) 2018 Chris Ludden

Licensed under the MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
backend
ssm
engine
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
Package template defines application ontology including domain types, interfaces, and core methods
Package template defines application ontology including domain types, interfaces, and core methods

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL