2 個答案
- 最新
- 最多得票
- 最多評論
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.
已回答 2 年前
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
已回答 9 個月前
相關內容
- AWS 官方已更新 7 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前