terraform validate

Category: IaC & Automation

terraform validate

Check configuration syntax and internal consistency

Validates that the configuration in the current directory is syntactically correct and internally consistent, catching typos and invalid references without contacting providers or the backend. It cannot see remote resources, and it requires an initialized directory. A standard gate in CI pipelines. Related: terraform plan, terraform fmt.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.