2017-02-15 282 views

回答

2

通過使用Boto3 library,您可以在下載文件後將文件上傳到您的存儲桶。 Here是您需要使用的boto3功能。

import boto3 
s3 = boto3.resource('s3') 
s3.meta.client.upload_file('/tmp/hello.txt', 'mybucket', 'hello.txt')