Question: ```
my $bucketname = "test";
my $bucket = $s3->add_bucket( { bucket => "$bucketname" } )
    or die $s3->err . ": " . $s3->errstr;

```

Running this code gives me this error.

> 
> BucketAlreadyExists: The requested bucket name is not available. The
>  bucket namespace is shared by all users of the system. Please select a
>  different name and try again.
> 
> 
> 

The bucket does not exist. I am not sure what's wrong.

Thanks

Answer: 
Different AWS accounts cannot have buckets of the same name.
Someone else must have created 'test' already.
You'll have this error if the bucket name already exists (for you or for someone else) or if you have attempted to create more buckets than allowed (maximum is 100)

See documentation form more details:

<http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html>