tfsec

Find security issues in Terraform code automatically

brewmacoslinux
Try with needOr install directly
Source

About

Static analysis security scanner for your terraform code

Commands

tfsec

Examples

scan terraform files for security problems$ tfsec .
check specific terraform file for vulnerabilities$ tfsec main.tf
scan terraform and show detailed output with explanations$ tfsec . -f json
scan terraform and ignore certain security checks$ tfsec . --skip AVD-AZU-0001,AVD-AZU-0002
scan terraform directory and only show critical issues$ tfsec . --minimum-severity CRITICAL