Skip to content

Generate jinja templated configuration files from KV backends (aws SSM)

Notifications You must be signed in to change notification settings

yogevyuval/confit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Overview

Generate template based configuration files from centralized KV stores like aws SSM.

Usage

confit --region us-east-1 -i config.jinja -o output.yaml

Template

confit uses the jinja2 templating language.

ֿParameters are available in the template through the vars variable.

You can use {{ vars.get('/parameter/param1/') }}, or {{ vars.get('/parameter/param1/' }}, 'default') to have a default. Access through {{ vars['/parameter/param1/'] }} is also supported.

Prefix

If you supply a prefix option, every option that starts with this prefix will be available through prefixed_vars in the same API as vars.

For example if you have the following parameters: /production/some/param1, /production/some/param2 and you you provide --prefix /production you can access the params like so: prefixed_vars.get('/some/param1')

Options

  • --region (string) - The region to connect to
  • --prefix (string) - The prefix to use to generate prefixed_vars
  • --input-template / -i (string) - The path to the input template
  • --output / -o (string) - If supplied, the output will be written to the output file

About

Generate jinja templated configuration files from KV backends (aws SSM)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages