How to clone a key in Amazon S3 using Python (and boto)?

前端 未结 6 1157
温柔的废话
温柔的废话 2021-02-19 01:27

I have a file contained in a key in my S3 bucket. I want to create a new key, which will contain the same file. Is it possible to do without downloading that file? I\'m looking

6条回答
  •  花落未央
    2021-02-19 02:23

    S3 allows object by object copy. The CopyObject operation creates a copy of an object when you specify the key and bucket of a source object and the key and bucket of a target destination. Not sure if boto has a compact implementation.

提交回复
热议问题