scan_terraform_file
Scan Terraform files for security misconfigurations using Checkov, returning structured findings with check ID, affected resource, line range, and code snippet.
Instructions
Scan Terraform (.tf) file content for security misconfigurations using Checkov and return structured findings.
Each finding includes the Checkov check ID, a human-readable title, the affected resource, its line range in the file, and the offending code snippet. Use this whenever the user asks to review, audit, or check the security of Terraform code.
Args: file_content: the raw text of a .tf file filename: original filename, used only for a friendlier label in output
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | main.tf | |
| file_content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||