You can use AWS CLI s3api List-Objects and query on the modified date field to to list all the objects during a specific time as shown below –
1 2 3 4 5 6 7 8 |
## List all objects on a specific date defined by `YYYY-MM-DD` aws s3api list-objects-v2 --bucket ## List all objects after a certain date defined by `YYYY-MM-DD` aws s3api list-objects-v2 --bucket ## List all objects between certain dates defined by `YYYY-MM-DD` aws s3api list-objects-v2 --bucket |
Hi,
What if i just want files 1 day back every day, or Hours, minutes
I would like to se if there is a backupfile from yesterday in a S3 bucket? and that I want to do everyday.
?LastModified -1 day
How can i build in that mechanism ?
cheers