Generate a list of files from an S3 bucket and save as compressed JSON