How to iterate through an S3 bucket to find the last modified file (and then save that to a local folder)

0 votes
Hi there guys, I've been tasked with creating a script uses the boto3 and AWS CLI to check when a last file change with an S3 bucket has occurred and then to sync the files within that S3 bucket with another folder which will be set up as a accessible website. The reason the last bit is important is because I'm intending to use the --dryrun command which would allow said files to appear as links which would then be viewable on said site. Essentially, the script would make two calls to the bucket in order to check for when the bucket was last modified and then to upload those files to a local folder.

Any ideas or help would be much appreciated. If you're in need of any clarification of my question then just let me know and I'll be more than happy to answer.
Feb 17 in Python by Markus
• 120 points
811 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Python

0 votes
1 answer
0 votes
1 answer

How to find the value of a row in a csv file in python?

If you want to find the value ...READ MORE

answered May 20, 2019 in Python by Sanam
185 views
0 votes
1 answer

Is it possible to read a text file into a string variable and then scrap the newlines?

This can be done easily in Python. ...READ MORE

answered Aug 7, 2019 in Python by Arvind
• 2,980 points
118 views
0 votes
0 answers

How can we save the extracted file in a specified folder?

While extracting the data using python selenium, ...READ MORE

Nov 7, 2019 in Python by moumita
• 120 points
63 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 57,550 points
1,010 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 57,550 points
1,824 views
0 votes
1 answer

Import my AWS credentials using python script

Using AWS Cli  Configure your IAM user then ...READ MORE

answered Nov 16, 2018 in AWS by Jino
• 5,670 points
1,110 views
0 votes
2 answers