How to trace the value source of variables?

Is there a tool that shows the value source of every variable in a terraform code repository, for example:

  • is in /Repo-root/Folder1/Folder2/bar.tfvars.json
  • var.foo2 is a parameter supplied in line 135 of the Jenkins pipeline code file
  • var.foo3’s value isn’t found anywhere in the repo code (it is presumably supplied by hand at runtime)

I have to look at many terraform repo’s and understand them quickly. Thanks so much!