Skip to content

A confident 12 factor config in dynamodb management tool

License

Notifications You must be signed in to change notification settings

rdooley/confidynt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Confidynt

Confident 12 factor config in dynamo db CLI tool

Usage

  • Writing a config
❯ cat example.conf
environment=confidynt-example
alpha_first="sandwich
    hotdog"
comes_first=fart
other_thing=barbeque
CLOUDWATCH_THING="ref to $environment"
❯ confidynt --table=deployment write example.conf
example.conf written to deployment
  • Reading a config
❯ confidynt --table=deployment read environment confidynt-example
environment=confidynt-example
comes_first=fart
CLOUDWATCH_THING="ref to $environment"
alpha_first="sandwich
    hotdog"
other_thing=barbeque

Multiline values

Multiline values like alpha_first in the above are supported, but and subsequent lines in the value must be indented.

Comments

Comments in flat config files are allowed and not written to dynamo # within multiline values must be indented e.g.

❯ cat example.conf
environment=confidynt-example
#a comment
other="
  #a thing"
❯ confidynt --table=deployment write example.conf
example.conf written to deployment

Results in

❯ confidynt --table=deployment read environment confidynt-example
environment=confidynt-example
other="
  #a thing"