docs-terraform-guidelines

Unused inputs

Terragrunt passes the inputs of a layer to the Terraform module it calls. Nothing checks that those inputs match the variables the module actually declares.

TL;DR

Every input of a layer must match a variable declared in the module it calls. Remove or rename the inputs that don’t.

Do not set inputs that the module does not declare

Terragrunt exposes the inputs as TF_VAR_* environment variables. Terraform silently ignores the ones that have no matching variable: no error, no warning.

Why?

How to fix it