Author Topic: Terraform .tfvars files not recognized  (Read 732 times)

pbrightly

  • Community Member
  • Posts: 68
  • Hero Points: 6
Terraform .tfvars files not recognized
« on: April 25, 2022, 07:57:47 PM »
Hey, thanks for the terraform support. :)
I finally got my hands on v26.0.1 -- I'm on a shared license, so... had to wait for it.

Looks pretty good so far.  I only found one problem.  *.tfvars are not recognized as terraform files.  That's where all custom values and secrets are kept.  From the Terraform tuturials:

Code: [Select]
Terraform automatically loads all files in the current directory with the exact name terraform.tfvars or matching *.auto.tfvars. You can also use the -var-file flag to specify other files by name.

These files use syntax similar to Terraform configuration files (HCL), but they cannot contain configuration such as resource definitions. Like Terraform configuration files, these files can also contain JSON.
Easy to add the extension in my config -- just thought you might want to include it by default.
« Last Edit: April 25, 2022, 08:12:37 PM by pbrightly »