terraform validate

From wikieduonline
Revision as of 10:45, 29 February 2024 by Welcome (talk | contribs) (→‎Examples with errors)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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[edit]

terraform validate
Success! The configuration is valid.

Examples with errors[edit]

Related[edit]

See also[edit]

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