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

How are we supposed to use this tool with custom *.tfvars files? #28

Open
lodotek opened this issue Jan 19, 2024 · 2 comments
Open

How are we supposed to use this tool with custom *.tfvars files? #28

lodotek opened this issue Jan 19, 2024 · 2 comments
Assignees

Comments

@lodotek
Copy link

lodotek commented Jan 19, 2024

It appears that this tool assumes that we have a terraform.tfvars and does not provide a way for us to specify our custom *.tfvars files, similar to how we can do natively, ie with -var-file terraform.prod.tfvars . Is this correct?

@orangekame3
Copy link
Collaborator

@lodotek
Sorry for the late reply.
Yes, we don't support -var-file terraform.prod.tfvars right now, but that is a good idea.
I will consider supporting it.

@orangekame3 orangekame3 self-assigned this Mar 7, 2024
@sidneiweber
Copy link

You can pass the variable TF_CLI_ARGS to add the var file

export TF_CLI_ARGS="-var-file terraform.prod.tfvars"
tftarget plan

or

TF_CLI_ARGS="-var-file terraform.prod.tfvars" tftarget plan

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