Run Checkov against a Terraform plan instead of raw HCL?
BeginnerProductionRapid-Fire Tool Questions
Answer
terraform plan -out tfplan
terraform show -json tfplan > tfplan.json
checkov -f tfplan.json --framework terraform_plan
Scanning the plan resolves variables and module values that static HCL scanning cannot see.
More on Rapid-Fire Tool Questions
Gitleaks command to scan only staged changes before a commit?BeginnerTrivy command to fail a build only on fixable critical vulnerabilities?BeginnerGenerate a CycloneDX SBOM for an image with Syft and scan it with Grype?BeginnerCosign keyless verify command that pins the GitHub Actions workflow identity?IntermediateSemgrep command to scan with OWASP rules and fail on findings?BeginnerHow do you list everything a service account can do in Kubernetes?Intermediate