aws s3 s3_select sql S3 Select is the feature that allows to use SQL to filter the data for your need, it will process on a S3 file.