Resolver logic to use with template files
702
Resolvme is a collection of resolver that can be used:
This is a vault key: <%= vault('/secret/my-secret', 'my-field') %>
This is a stack output: <%= cf_stack_output('my-cloudformation-stack', 'MyOutputName') %>
This is a certificate arn: <%= acm_cert_arn('*.example.org') %>
Because ERB is used in the main object, you're free to use all the potential of the ruby programming language, but make sure the input comes from trusted sources (as the input is real code that runs in the ruby interpreter).
Run bundle install
By default template files are read from the standard input and rendered into the standard output, so you can use I/O redirection in your shell to read/write from/to files. You can also use a process substitution pattern to pass the output as a file to another process.
Input and output files can be also provided as argument to the program.
# work with files
$ resolvme template out
# work with files (with I/O redirection)
$ resolvme < template > out
# work with helm
$ helm install my-chart -f <(resolvme < override-template)
# pipe into kubectl
$ resolvme < template | kubectl apply -f -
Content type
Image
Digest
Size
41.4 MB
Last updated
over 5 years ago
docker pull citizensadvice/resolvme