While Amazon S3 is awesome for storage, It also has a feature called S3 Select. With S3 Select, You can use a simple SQL query to filter the content of the stored objects. and retrieve only a subset of data that you need.
PHP
Goodbye reCAPTCHA, hello Turnstile
We’ve been using this solution in our projects as well. Read more