Confident 12 factor config in dynamo db CLI tool
- 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 like alpha_first
in the above are supported, but and subsequent lines in the value must be indented.
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"