'consul-template file per key-value

I have a use case where i need consul template to watch multiple keys at a specific path. The number of keys at that path are variable. For each key under that path, it needs to grab the value and put it in a destination file on the host file system. Is this achievable using consul-template?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source