I'm working on a small project where I have readonly access to one s3 bucket and my job is to copy the data from this s3 bucket to my own s3 bucket whenever my code runs.
My approach is to get the metadata of the readonly s3 bucket and get the objects in order sorted by date and I will keep track of last copied file and copy only those which are not in my s3 bucket.
I've already referred some solutions available on stack overflow like this one: How list Amazon S3 bucket contents by modified date?
But the problem is that I'm using Java and cannot use aws s3api.
Another solution I found here(https://www.quora.com/How-do-I-filter-files-in-an-S3-bucket-folder-in-AWS-based-on-date-using-boto) was to use timestamps in file name itself and then get the data from s3 based on last copied file name. But as I only have readonly access, I cannot do this.
Anyone has any idea about how to achieve this? Any solution will be very helpful. I can use any aws service if a solution exists.
Thanks in advance! :)
Edit: As pointed out by @Marcin in comments, I cannot trigger anything like PUT event on the readonly s3 bucket. I can only read the data.