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
How Geocodio keeps 300M addresses up to date
Using a Laravel pipeline is always nice to structure a process like this. Read more