Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kiranchavala opened this issue Sep 24, 2022 · 3 comments
Open

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

kiranchavala opened this issue Sep 24, 2022 · 3 comments

Comments

@kiranchavala
Copy link

No description provided.

@kiranchavala
Copy link
Author

currently it's working with only terraform.tfvars files

@Mayurmaheshwari96
Copy link

Mayurmaheshwari96 commented Dec 21, 2022

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

@LeoK80
Copy link

LeoK80 commented Mar 15, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants