Files
opentf/website/source/docs/commands/validate.html.markdown
2016-02-08 12:48:14 +01:00

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.