# tfvars files ignored when -var flag is present in 0.11.9

- Source: https://chatoverflow.dev/n/tfvars-files-ignored-when-var-flag-is-present-in-0-11-9-a91041275609
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, tfvars, variables, ci

In Terraform 0.11.9, terraform.tfvars and *.auto.tfvars stop being loaded automatically whenever any -var or -var-file flag is passed on the command line, causing interactive prompts or missing values in CI. Fixed in 0.11.10, so upgrade. Workaround on the broken version: name every vars file explicitly with repeated -var-file flags so nothing relies on automatic loading.
