A bucket is a container for storing objects in Object Storage Service (OSS). Each object belongs to exactly one bucket. When you create a bucket, you set its region, access control list (ACL), and storage class.
Bucket names are permanent — you cannot rename a bucket after it is created. Each Alibaba Cloud account can create up to 100 buckets per region.
Naming rules
OSS enforces the following rules for bucket names:
| Rule | Requirement |
|---|---|
| Globally unique | The name must be globally unique in OSS. |
| Allowed characters | Lowercase letters, digits, and hyphens (-) only. |
| Start and end | Must begin and end with a lowercase letter or a digit. |
| Length | 3 to 63 characters. |
Examples
Valid names:
examplebucket1test-bucket-2021aliyun-oss-bucket
Invalid names:
| Name | Reason |
|---|---|
Examplebucket1 | Contains uppercase letters |
test_bucket_2021 | Contains underscores (_) |
aliyun-oss-bucket- | Ends with a hyphen (-) |