terrahelp
terrahelp copied to clipboard
Can terrahelp use "terraform.tfvars.json" file is present
currently it's working with only terraform.tfvars files
I am try to read the values from the terraform.tfvars and try to print the values but not able to print it.
Can you help me how can i see the value it reads and use the variable for my testing
Can this issue/question be considered as a feature request?
For sake of convenience and sharing projects within teams people will be using commands much like
vault kv get -format=json secret/terraform | jq '.data.data' > terraform.tfvars.json
where secret/terraform contains all the key-value pairs required for running the terraform commands with all the needed variable definitions (secrets) stored in vault instead of their repos (as best practice would dictate).
Of course, terraform as well fully supports the json format file.