2 Answers
- Newest
- Most votes
- Most comments
0
Hello A good understanding of the system is needed to be able to suggest possible solutions. The boto3 lib can be plugged into the system to collect and upload these file. By and large how the system works is needed to help.
answered 2 years ago
0
You can first start by creating a python script that will iterate thorough the set of python files and then upload them to S3 in groups of 100. The script should have:
- necessary libraries and Boto3
- create Boto3 session
- initialize S3 client
- obtain list of python files in the set
- Iterate through the list of Python files and upload them to AWS S3 in groups of 100
- close the Boto3 session
Then you can create a cron job that will run the python script every 10 minutes to ensure that the python files are uploaded to S# in goups of 100 every 10 minutes.
- create the cron job using the commad: crontab -e
- in the crontab editor add: */10 * * * * python /path/to/python/script.py
answered a year ago
Relevant content
- asked 3 months ago
- Accepted Answerasked 6 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago