no-unused-module-inputs
Find forwarded Terraform inputs without a reachable consumer.
Why
A variable referenced only by unused locals or discarded module arguments still passes a textual unused-declaration check. Its interface requires callers to maintain configuration that reaches no resource, validation, public export or external module.
Fix
Review the declaration, every caller and their tfvars together. Remove the dead plumbing only after preserving required inputs, type conversion, validation, source-reading functions and external contracts. Do not replace operational controls with constants.
Examples
[iac.no-unused-module-outputs]internal_modules = ["child"]locals { unused = var.region }variable "region" { type = string }module "child" { source = "./child" region = "west"}[iac.no-unused-module-outputs]internal_modules = ["child"]resource "example" "service" { region = var.region }variable "region" { type = string }module "child" { source = "./child" region = "west"}