1 Answer
- Newest
- Most votes
- Most comments
1
The --filter(s)
parameter uses server-side filtering, returning only the data with matching results.
In contrast, the --query
parameter utilises client-side filtering, returning all data to the client prior to matching.
For more info, take a look at https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html
answered 2 years ago
Relevant content
- asked 4 months ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
Thanks, it helps. I'm pasting a sample code from boto3 docs,
instances = ec2.instances.filter( Filters=[{'Name': 'instance-state-name', 'Values': ['running']}])
Can I assume that this 'filter' would work the same way, since both use the same backend API?
Yes, that would be using server-side filtering