You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#35903 doesn't take into account the presence of undeclared variables, so when any automatically applied variable files exist in the configuration directory, apply can't proceed.
Reproduction: apply any configuration which has a terraform.tfvars or *.auto.tfvars* file with a variable assignment not declared in the configuration.
The text was updated successfully, but these errors were encountered:
We already produce warning diagnostics for undeclared variables when parsing variables values: https://github.com/hashicorp/terraform/blob/main/internal/backend/local/backend_local.go#L194 - which makes me believe we no longer need the first diagnostic I've linked to. However, this is only part of the issue—the error message you’re seeing comes from when a set variable cannot be found in the list of declared variables in the root module configuration, causing this else and error diagnostic to trigger.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
#35903 doesn't take into account the presence of undeclared variables, so when any automatically applied variable files exist in the configuration directory, apply can't proceed.
Reproduction: apply any configuration which has a
terraform.tfvars
or*.auto.tfvars*
file with a variable assignment not declared in the configuration.The text was updated successfully, but these errors were encountered: