'S3 - Lambda python - check file encoding

we have huge files in s3 bucket and we are trying to implement lambda (python) and check files encoding. For sure we dont want to load these files on efs connected to lambda to be able to open it. So some metadata streams I think could be suitable but I am not able to find any proper solution.

Maybe anyone know how to do that?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source