gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
Give me a CLI command for aws cli to get all findings from security hub with security…
- User
Give me a CLI command for aws cli to get all findings from security hub with security control id EC2.19
- Assistant
To get all findings from AWS Security Hub with the security control ID EC2.19, you can use the following CLI command:
bashaws securityhub get-findings --query "Findings[?Compliance.[ControlId=='EC2.19']]"This command uses the
get-findingsAPI 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.