From 1a10174258f5d79e20a7bd017ba5bd9d2cb6a572 Mon Sep 17 00:00:00 2001 From: simar7 <1254783+simar7@users.noreply.github.com> Date: Fri, 13 Jan 2023 06:46:07 -0800 Subject: [PATCH] docs: Add Trivy migration guide (#1961) --- docs/guides/trivy.md | 47 ++++++++++++++++++++++++++++++++++++++++++++ mkdocs.yml | 1 + 2 files changed, 48 insertions(+) create mode 100644 docs/guides/trivy.md diff --git a/docs/guides/trivy.md b/docs/guides/trivy.md new file mode 100644 index 0000000000..f91a82ebb2 --- /dev/null +++ b/docs/guides/trivy.md @@ -0,0 +1,47 @@ +# Moving towards configuration scanning with Trivy +Overtime we've taken [trivy][trivy] to be the go-to scanning tool for a vareity of things. This also includes terraform scanning. + +This section describes some differences between Trivy and tfsec. + +| Feature | Trivy | tfsec | +|----------------------|--------------------------------------------------------|----------------------| +| Policy Distribution | Embedded and Updated via Registry | Embedded | +| Custom Policies | Rego | Rego, JSON, and YAML | +| Supported Formats | Dockerfile, JSON, YAML, Terraform, CloudFormation etc. | Terraform Only | + + +# Comparison with examples +## Simple scan +### With Trivy +```shell +$ trivy config