From c51f2b82e45e49975305dc294baa76873a02d002 Mon Sep 17 00:00:00 2001 From: AndrewCharlesHay Date: Wed, 14 Sep 2022 09:26:32 -0500 Subject: [PATCH] docs: batch-import-findings limit (#2851) --- docs/docs/integrations/aws-security-hub.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/docs/integrations/aws-security-hub.md b/docs/docs/integrations/aws-security-hub.md index 6edb173c66b..60c34bef411 100644 --- a/docs/docs/integrations/aws-security-hub.md +++ b/docs/docs/integrations/aws-security-hub.md @@ -22,6 +22,14 @@ Then, you can upload it with AWS CLI. $ aws securityhub batch-import-findings --findings file://report.asff ``` +### Note + +The [batch-import-findings](https://docs.aws.amazon.com/cli/latest/reference/securityhub/batch-import-findings.html#options) command limits the number of findings uploaded to 100 per request. The best known workaround to this problem is using [jq](https://stedolan.github.io/jq/) to run the following command + +``` +jq '.[:100]' report.asff 1> short_report.asff +``` + ## Customize You can customize [asff.tpl](https://github.com/aquasecurity/trivy/blob/main/contrib/asff.tpl)