Pre-commit Flashcards
List the pre-checks that DBT use
Trufflehog
Checkov
terraform fmt
terraform validate
tflint
terraform test
python tests - unit tests for python code within the terraform modules
What is Trufflehog
security linter designed for developers to scan their code repositories for secrets accidentally committed to version control. Trufflehog can detect credentials like API keys, tokens, and private keys.
What is Checkov
policy-as-code. Checkov scans cloud infrastructure configurations to find misconfigurations before they’re deployed.
What is terraform fmt
The terraform fmt command is used to rewrite Terraform configuration files to a canonical format and style.
What is terraform validate
The terraform validate command validates the configuration files in a directory, referring only to the configuration and not accessing any remote services such as remote state, provider APIs, etc.
What is tflint
is a Terrafom linter. It can :
- Find possible errors (like invalid instance types) for Major Cloud providers (AWS/Azure/GCP).
- Warn about deprecated syntax, unused declarations.
- Enforce best practices, naming conventions.
What is terraform test
The terraform test command reads in Terraform testing files and executes the tests within.