Perform the following steps to scan your terraform files. Use “accrucs.exe” instead of “accurics” while running the commands.
- Run the following command to initialize Terraform:
- Use the following commands to run your Terraform/Terragrunt plan:
accurics plan -config=<config file name>
<config file name> is the configuration file downloaded from project details on the Accurics console.
accurics tgplan -config=<config file name> accurics tgplanall -config=<config file name>
Here is a sample output of the Accurics CLI:
Accurics CLI returns “1” if high severity violations are detected and “0” when there are no high severity violations.
The scan results, including the number of resources, violations, etc., are sent to the Accurics console.