Search code examples
amazon-s3amazon-web-servicesamazon-ec2amazon-cloudfront

Amazon storage unlimited bucket


Hi is there any version of amazon web services provides unlimited buckets?


Solution

  • No. From the S3 documentation:

    Each AWS account can own up to 100 buckets at a time.

    S3 buckets are expensive (in terms of resources) to create and destroy:

    The high availability engineering of Amazon S3 is focused on get, put, list, and delete operations. Because bucket operations work against a centralized, global resource space, it is not appropriate to make bucket create or delete calls on the high availability code path of your application. It is better to create or delete buckets in a separate initialization or setup routine that you run less often.

    There's also no good reason to use lots of buckets:

    There is no limit to the number of objects that can be stored in a bucket and no variation in performance whether you use many buckets or just a few. You can store all of your objects in a single bucket, or you can organize them across several buckets.

    You want a separate space for each of your users to put things. Fine: create a single bucket and give your user-specific information a <user_id>/ prefix. Better yet, put it in users/<user_id>/, so you can use the same bucket for other non-user-specific things later, or change naming schemes, or anything else you might want.

    ListObjects accepts a prefix parameter (users/<user_id>/), and has special provisions for hierarchical keys that might be relevant.