-
Notifications
You must be signed in to change notification settings - Fork 6
How To Scan a Terraform Workspace
Huzefaaa2 edited this page May 8, 2026
·
2 revisions
This guide shows how to scan one file, many files, or a Terraform folder before infrastructure is applied.
- Open the Terraform Guardrail web UI.
- In Upload Terraform workspace, choose a folder or select multiple
.tf,.tfvars, and.hclfiles. - Click Scan Workspace.
- Review the scan report for high, medium, and low findings.
- Click a rule ID in the right-side catalog to understand the rule.
- If a finding needs ownership or compliance context, create an enterprise policy and map it to the rule.
terraform-guardrail scan ./infraUse JSON output when another tool needs to consume the report:
terraform-guardrail scan ./infra --format jsonTry scanning a small folder that contains one Terraform file with an S3 bucket or security group. This makes it easy to connect each finding to the resource that triggered it.