Skip to content

Mimic vault datasource with second argument, using a file #1182

Answered by liaocanada
liaocanada asked this question in Q&A
Discussion options

You must be logged in to vote

Just noticed the zsh at the beginning of that last error. Added quotes around the whole thing and it works now 🎉

Basically I had to:

  1. Create a file for each vault secret I referred to, with the file name matching the secret name
  2. Make each of the file contents a JSON object with value being the key
  3. Use the enclosing directory as the data source, append ?type=application/json, and surround the whole thing in quotes

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hairyhenderson
Comment options

Answer selected by liaocanada
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants