🔸 Terraform

CloudDefense terraform scan performs static analysis of terraform templates to spot potential security issues.

To run terraform scan, the user should provide API-key, project-name, and path to terraform templates (file with extension *.tf)

Usage:

NAME:
cdefense terraform - Static code analysis of Terraform
USAGE:
cdefense terraform [command options] [arguments...]
OPTIONS:
--api-key value, -a value Api Key for Cloud Defense server [$CD_API_KEY]
--project-name value, -p value Name of the project [$PROJECT_NAME]
--path value, -f value Path to the scan file. Defaults to $(pwd) [$PROJECT_PATH]
--dryrun, -d Dry run of the scan (default: false)
--tag value, -t value Tag the scan [$TAG_NAME]
--help, -h show help (default: false)

Example:

cdefense terraform --api-key=<api-key> --project-name=<project name> --path=<path to dir with templates>