You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/website/source/docs/commands/validate.html.markdown

785 B

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.