Complete the command to check Terraform configuration syntax.
terraform [1]The terraform validate command checks the syntax and internal consistency of Terraform configuration files without applying changes.
Complete the command to initialize Terraform before validation.
terraform [1] && terraform validateYou must run terraform init first to initialize the working directory before running terraform validate.
Fix the error in the command to validate Terraform files in a specific directory.
terraform validate [1]To validate Terraform files in a specific directory, provide the directory path as an argument, like terraform validate my-terraform-config.
Fill both blanks to run Terraform validation with detailed output and specify a variable file.
terraform validate [1] [2]
The -json flag outputs validation results in JSON format, and -var-file=dev.tfvars specifies a variable file to use during validation.
Fill all three blanks to initialize Terraform, validate configuration, and show detailed output without color.
terraform [1] && terraform validate [2] [3]
First, run terraform init to initialize. Then terraform validate with -json for detailed output and -no-color to disable colored text.