terraform-validate
Validate the configuration files in a directory. tldr-pages
On several platforms
Several platforms
Validate the configuration in the current directory
terraform validateIdentifyOutput the validation result in JSON format
terraform validate -jsonIdentifyValidate the configuration without validating test files
terraform validate -no-testsIdentifyValidate the configuration in a specific directory
terraform validate path/to/directoryIdentifyValidate the configuration using a custom test directory
terraform validate -test-directory path/to/test_directoryIdentify