我有以下模块:
def get_details(N, bucket_path):
s3 = boto3.resource('s3')
files = recent_N(str(N), bucket_path)
bucket = s3.Bucket(bucket_path)
for obj in bucket.objects.all():
key = obj.key
if key in files:
body = obj.get(SSECustomerAlgorithm='AES256', SSECustomerKey='')['Body'].read()
s3.Bucket('bucket_2').put_object(Key=key, Body=body)
我不断收到以下错误:
botocore.exceptions.ClientError: An error occurred (InvalidRequest) when calling the GetObject operation: The encryption parameters are not applicable to this object.
有什么我做错了吗?
博托版:boto3==1.4.4
PS:是的,密钥是正确的。我检查了很多次。