Difference between revisions of "Terraform validate"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
<code>[[terraform]] validate</code>
+
<code>[[terraform]] validate</code> <ref>https://www.terraform.io/docs/cli/commands/validate.html</ref> validates the configuration files in a directory.
* https://www.terraform.io/docs/cli/commands/validate.html
 
  
 
* <code>terraform validate</code>
 
* <code>terraform validate</code>

Revision as of 10:14, 29 February 2024

terraform validate [1] validates the configuration files in a directory.

terraform validate requires an initialized working directory with any referenced plugins and modules installed. Execute: terraform init -backend=false

Example

terraform validate
Success! The configuration is valid.

Examples with errors

Related

See also

  • https://www.terraform.io/docs/cli/commands/validate.html
  • Advertising: