--- page_title: provider::terraform::decode_tfvars - Functions - Configuration Language description: >- The decode_tfvars function parses a string containing syntax like that used in a ".tfvars" file. --- # `provider::terraform::decode_tfvars` Function -> **Note:** This function is supported only in Terraform v1.8 and later. `provider::terraform::decode_tfvars` is a rarely-needed function which takes a string containing the content of a [`.tfvars` file](/terraform/language/values/variables#variable-definitions-tfvars-files) and returns an object describing the raw variable values it defines. To use this function, your module must declare a dependency on the built-in `terraform` provider, which contains this function: ```hcl terraform { required_providers { terraform = { source = "terraform.io/builtin/terraform" } } } ``` Elsewhere in your module you can then call this function: ```hcl provider::terraform::decode_tfvars( <