How do you test and lint modules during development?
Answer
terraform -chdir=examples/vpc init
terraform -chdir=examples/vpc validate
terraform -chdir=examples/vpc plan
tflint --module
terraform validatecatches syntax errors and missing providers.Running
planagainst an example stack surfaces integration issues before promotion.tflint --moduleadds provider-specific linting; tools like Terratest can provision ephemeral infra for assertions.Include these commands in CI so every module change is exercised automatically.