Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· openaiHugging Face Suzhen/CodeChat

Give me a CLI command for aws cli to get all findings from security hub with security…

  1. User

    Give me a CLI command for aws cli to get all findings from security hub with security control id EC2.19

  2. Assistant

    To get all findings from AWS Security Hub with the security control ID EC2.19, you can use the following CLI command:

    aws securityhub get-findings --query "Findings[?Compliance.[ControlId=='EC2.19']]"
    

    This command uses the get-findings API operation to retrieve all findings from Security Hub and filters the findings using JMESPath to only include findings that have the specified security control ID EC2.19.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.