-var-file=filename

Hi @vnicolas16,

These new error messages do at least confirm that the Windows command interpreter is correctly passing the full and correct filenames test.tfvars and prod.tfvars to Terraform, and it’s Terraform itself which can’t find the files.

I’m not sure if I’m reading all of the paths in your screenshot directly, but it looks like you’re running Terraform from the root of your VSCode workspace, but that these two variable files are in a subdirectory called “Vars (Variable Files)”. If that’s true, I think these errors are correct because the files are not in the current working directory where you are running Terraform. If you move those two .tfvars files up to the workspace root, or if you switch into the subdirectory first before running terraform plan ..., do you get a better result?