delfick / bespin

Opinionated wrapper around boto that reads yaml
MIT License
6 stars 8 forks source link

Document formatter and available paths #41

Closed atward closed 7 years ago

atward commented 7 years ago

A large part of user confusion is coming from not knowing what keys/paths are available for the {} config syntax. Recommend documenting a list of what is available, and any additional keys that are derived/appended.

Additionally::

Formatters:

environment variables

variables (ie: XXX_var_XXX)

delfick commented 7 years ago

you also have these three inside the block for each stack https://github.com/delfick/bespin/blob/master/bespin/collector.py#L187-L189

There is some effort to talk about variables in https://github.com/delfick/bespin/blob/master/docs/docs/stacks.rst#defining-variables but I'm sure it could do with improvement

delfick commented 7 years ago

the _key_name_X syntax comes from the sb.formatted spec.

https://github.com/delfick/input_algorithms/blob/master/input_algorithms/spec_base.py#L1081

Which uses https://github.com/delfick/input_algorithms/blob/master/input_algorithms/meta.py#L76

atward commented 7 years ago

PR #61 addresses first half (formatter). Need to add more explanation around 2nd pass/variable resolution in stacks.rst