我有以下功能
async def _s3_copy_object(self, s3_source, s3_destination):
source_bucket, source_key = get_s3_bucket_and_key(s3_source)
destination_bucket, destination_key = get_s3_bucket_and_key(s3_destination)
print("copying object: {} to {}".format(s3_source, s3_destination))
source = {'Bucket': source_bucket, 'Key': source_key}
await self._async_s3.copy_object(CopySource=source,
Bucket=destination_bucket, Key=destination_key,
ServerSideEncryption='AES256',
MetadataDirective='COPY',
TaggingDirective='COPY')
如果文件小于 5GB,这非常有效,但如果对象超过 5GB,则失败。
我收到以下错误:
调用CopyObject操作时发生错误(InvalidRequest):指定的复制源大于复制源允许的最大大小:5368709120:1313
有解决办法吗?