Skip to content
Advertisement

aws s3 sdk returns “You have attempted to create more buckets than allowed”

I’m using aws s3 SDK in my code. In my tests I’m trying to create/drop buckets for the test.

My sdk version is 1.11.800 :

JavaScript

The creation’s code is exactly the same as in aws examples :

JavaScript

The exception :

JavaScript
  • I got more than 100 buckets in my account but when I try to create a bucket in the aws console I create it successfully without any problems.

  • When I create the bucket manually and run my other tests (that don’t create this bucket) I can successfully put and delete content from the bucket so it isn’t a credentials issue.

Advertisement

Answer

By default, an AWS account is soft limited to 100 S3 buckets.

You need to submit a service limit increase request by creating a new case through the support portal.. Once they override the default soft limit on your account you may create up to 1000 S3 buckets.

Read more about bucket restrictions here

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement