terraform validate
Jump to navigation
Jump to search
↑ https://www.terraform.io/docs/cli/commands/validate.html
terraform validate [1] validates the configuration files in a directory.
terraform validateterraform validate && terraform plan
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]
Error: Could not load pluginError: Unsupported argument ... An argument named "XXX" is not expected here.
Related[edit]
terraform init -backend=falseterraform fmtterraform fmt -checkterraform planterraform state,terraform state show- Test mode
aws cloudformation validate-template- K8s datree plugin
terragrunt validatetflint- Pre-commit Terraform hooks:
.pre-commit-config.yaml
See also[edit]
terraform fmt [ -diff | -check | validate | --help ]
Advertising: