Interview Prep/Terraform/Rapid-Fire Commands

Run one test file with verbose output, or filter tests?

IntermediateProductionRapid-Fire Commands
Answer
terraform test -verbose
terraform test -filter=tests/vpc.tftest.hcl
terraform test -var="env=test"

Test files live in the module root or tests/ and need terraform init first.

All Terraform questions

More on Rapid-Fire Commands