mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-28 23:01:14 -04:00
785 B
785 B
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| docs | Command: validate | docs-commands-validate | The `terraform validate` command is used to validate the format and structure of the terraform files. |
Command: verify
The terraform validate command is used to validate the syntax of the terraform files.
Terraform performs a syntax check on all the terraform files in the directory, and will display an error if the file(s)
doesn't validate.
These errors include:
-
Interpolation in variable values, depends_on, module source etc.
-
Duplicate names in resource, modules and providers.
-
Missing variable values.
Usage
Usage: terraform validate [dir]
By default, validate requires no flags and looks in the current directory
for the configurations.