tftarget
tftarget copied to clipboard
How are we supposed to use this tool with custom *.tfvars files?
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?
@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.
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