If I want to render secret and pki (short lived) from vault server and use it to run nomad and or consul agent (in client mode) in an ec2 instance, what tools I need to use ?
from what I know we can use consul-template or vault agent, but I’m still confuse why the 2 tools exist with same function? can anyone enlightenment me?
any pros and cons about the 2 tools ?
Thanks in advance…
consul-template is just a markup language that renders output based on templates. It’s badly named. Any product can use it.
Vault agent, is an tool that can authenticate to Vault and keep your token and auth fresh for you. The agent also optionally exposes your valid token and/or allow you to use “consul-template” to render your secrets in a format that your application can consume easily. Without using consul-template you would have to modify your application/code to consume the secrets directly from Vault – which is good but not every application can be made Vault aware directly.
Thanks for your tldr @aram