terraform validate --help
-
Check for updates to the options: https://www.terraform.io/docs/commands/index.html
Usage: terraform validate [options] [dir] Validate the terraform files in a directory. Validation includes a basic check of syntax as well as checking that all variables declared in the configuration are specified in one of the possible ways: -var foo=... -var-file=foo.vars TF_VAR_foo environment variable terraform.tfvars default value If dir is not specified, then the current directory will be used. Options: -check-variables=true If set to true (default), the command will check whether all required variables have been specified. -no-color If specified, output won't contain any color. -var 'foo=bar' Set a variable in the Terraform configuration. This flag can be set multiple times. -var-file=foo Set variables in the Terraform configuration from a file. If "terraform.tfvars" is present, it will be automatically loaded if this flag is not specified.
© Lightnetics 2024