no-dead-environment-input
Find undeclared tfvars assignments and potentially redundant scalar values across discovered Terraform environments.
Why
Undeclared assignments are stale configuration, while repeated scalar values can hide whether a setting is truly environment-specific or belongs in shared configuration.
Fix
Remove assignments that have no parsed declaration. For repeated values, confirm the setting is not an intentional per-environment contract before moving it to a default or shared input source.
Examples
text_llm_enable_thinking = truevariable "text_llm_enable_thinking" { type = bool default = true}text_llm_enable_thinking = truetext_llm_enable_thinking = falsevariable "text_llm_enable_thinking" { type = bool default = true}region = "me-central2"gke_enabled = truevariable "region" { type = string}region = "me-central2"gke_enabled = truevariable "region" { type = string}variable "gke_enabled" { type = bool}pagerduty_enabled = falsepagerduty_enabled = falsevariable "pagerduty_enabled" { type = bool default = true}redis_tier = "BASIC"redis_tier = "STANDARD_HA"variable "redis_tier" { type = string}api_token = "same-placeholder"api_token = "same-placeholder"variable "api_token" { type = string sensitive = true}api_token = "dev-placeholder"api_token = "prod-placeholder"variable "api_token" { type = string sensitive = true}