What is the significance of the –query flag in AWS CLI, and how can it be used to filter and format the output of a command?
The --query flag uses JMESPath expressions to filter, transform, and extract specific data from AWS CLI command outputs. It helps reduce unnecessary information, improves readability, and is commonly used with --output json, --output table, or --output text for reporting and automation.