Do anybody know how to perform grep on S3 files with aws S3 directly into the bucket? For example I have FILE1.csv, FILE2.csv with many rows and want to look for the rows that
You can also use the GLUE/Athena combo which allows you to execute directly within AWS. Depending on data volumes, queries' cost can be significant and take time.
Basically
Use Athena to query, e.g.
select "$path",line from where line like '%some%fancy%string%'
and get something like
$path line
s3://mybucket/mydir/my.csv "some I did find some,yes, "fancy, yes, string"
Saves you from having to run any external infrastructure.