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 18, 2020 in Python by Markus
• 120 points
3,625 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

How to find the value of a row in a csv file in python and print column and row of that value ?

Hello @Khanhh , Use panda to find the value of ...READ MORE

answered Oct 15, 2020 in Python by Niroj
• 82,880 points
6,234 views
–1 vote
2 answers
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
18,565 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
• 3,040 points
1,548 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
• 58,090 points
5,439 views
–1 vote
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
• 58,090 points
4,858 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,810 points
2,588 views
0 votes
2 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP