use boto3 to upload file to s3 boto3.exceptions.S3UploadFailedError: An error occurred (QuotaExceeded) when calling the PutObject operation: Unknown

Viewed 55
params = dict(service_name="s3", endpoint_url="****",
              aws_access_key_id="****",
              aws_secret_access_key="****")
s3 = boto3.client(**params)
response = s3.upload_file(localfile, bucket, key=key)

boto3.exceptions.S3UploadFailedError: An error occurred (QuotaExceeded) when calling the PutObject operation: Unknown

1 Answers

There is a limit on quotas that you can operate when using Boto3 for AWS. Some are adjustable, some are not. From your code, we don't see the file size, so this might be it as well. Here is the page for S3 and its quotas limit here

Related