Usage:

  $ snyk iac [command] [options] <path>

Find security issues in your Infrastructure as Code files (currently we support Kubernetes & Terraform files only).

Commands:

  test ............... Test for any known issue.

Options:

  -h, --help
  --json .................................. Return results in JSON format.
  --json-file-output=<string>
                       (test command only)
                       Save test output in JSON format directly to the specified file, regardless of whether or not you use the `--json` option.
                       This is especially useful if you want to display the human-readable test output via stdout and at the same time save the JSON format output to a file.
  --sarif ................................. Return results in SARIF format.
  --sarif-file-output=<string>
                       (test command only)
                       Save test output in SARIF format directly to the specified file, regardless of whether or not you use the `--sarif` option.
                       This is especially useful if you want to display the human-readable test output via stdout and at the same time save the SARIF format output to a file.
  --severity-threshold=<low|medium|high>... Only report issues of provided level or higher.

Examples:

  $ snyk iac test /path/to/Kubernetes.yaml
  $ snyk iac test /path/to/terraform_file.tf


For more information see https://support.snyk.io/hc/en-us/categories/360001342678-Infrastructure-as-code
