Interview Prep/Terraform/Rapid-Fire Commands

Validate configuration and get machine-readable output?

BeginnerProductionRapid-Fire Commands
Answer
terraform init -backend=false && terraform validate -json

-backend=false lets you validate in CI without credentials.

All Terraform questions

More on Rapid-Fire Commands