AWS S3 Multi-Part Unable to resume

Viewed 115

I am implementing AWS S3 multipart using python boto3.

I am unable to resume the pending uploads.

s3_client = boto3.client('s3', aws_access_key_id='foobarkey', aws_secret_access_key='foobar', region_name='ap-south-1')

key = 'my_long_key'
upload_id = 'upload_id'  # generated using create_multipart_upload method.

# fetching pending upload parts
response = s3_client.list_parts(Bucket='foobarbucker', Key=key, UploadId=upload_id)
print(response['Parts'])

How to get the pending parts to resume.

print(response['Parts']) KeyError: 'Parts'

1 Answers
Related