terrahelp icon indicating copy to clipboard operation
terrahelp copied to clipboard

Can terrahelp use "terraform.tfvars.json" file is present

Open kiranchavala opened this issue 2 years ago • 3 comments

kiranchavala avatar Sep 24 '22 03:09 kiranchavala

currently it's working with only terraform.tfvars files

kiranchavala avatar Sep 24 '22 03:09 kiranchavala

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 image

image

Mayurmaheshwari96 avatar Dec 21 '22 19:12 Mayurmaheshwari96

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.

LeoK80 avatar Mar 15 '23 09:03 LeoK80