Skip to content
👷 The Terragrunt website redesign is Work In Progress! 👷
For a list of outstanding TODOs see this.
To give feedback, click here.

lint

Usage

Lint Terragrunt HCL configuration.

Examples

Lint all HCL files in the current directory.

Terminal window
terragrunt hcl lint

Throw an error if any variables are not set by the module a unit provisions.

Terminal window
terragrunt hcl lint --inputs

Throw an error if any inputs are set that are not defined in the module.

Terminal window
terragrunt hcl lint --inputs --strict

Flags

--inputs

Validate that all variables are set by the module a unit provisions.

When enabled, Terragrunt will validate that all variables are set by the module a unit provisions.

Example:

Terminal window
terragrunt hcl lint --inputs
Type: bool

Environment Variables:

  • TG_HCLVALIDATE_INPUTS

--strict

Throw an error if any inputs are set that are not defined in the module that a unit provisions.

When enabled, Terragrunt will throw an error if any inputs are set that are not defined in the module that a unit provisions.

Example:

Terminal window
terragrunt hcl lint --inputs --strict
Type: bool

Environment Variables:

  • TG_HCLVALIDATE_STRICT