【问题标题】:How to Upload to AWS S3 with Transfer Acceleration using Python BOTO如何使用 Python BOTO 通过 Transfer Acceleration 上传到 AWS S3
【发布时间】:2021-07-17 11:20:42
【问题描述】:

在尝试将文件上传到 S3 时,如何将 Transfer Acceleration 端点 URL 传递给 boto upload_file 函数?

我当前的代码是:

s3.Bucket(BUCKET).upload_file(filetoupload, pathnfilename, ExtraArgs={'ACL':'public-read'})

【问题讨论】:

    标签: python amazon-web-services boto


    【解决方案1】:

    您将在创建 resource 对象时提供它:

    s3 = boto3.resource('s3', endpoint_url="the_endpoint")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-12-31
      • 1970-01-01
      • 1970-01-01
      • 2018-07-09
      • 1970-01-01
      • 2014-10-12
      • 2013-03-23
      相关资源
      最近更新 更多