Input variable other than .tfvar files

Hello All,

I am trying to understand does terraform able to read variable and value from any other files other than .tfvars or .json file.
I wish to achieve from .yaml or .txt is it possible?

Hi @dbdngit,

Terraform only supports tfvars files in the main Terraform syntax (.tfvars suffix) and in JSON (.tfvars.json suffix).

No other formats are supported, and we don’t have any plans to support any additional formats because the JSON format should typically be straightforward to generate from other formats before running Terraform, if needed.

1 Like