A bucket is a container for objects stored in Object Storage Service (OSS). You must create a bucket before you upload an object to OSS. This topic describes how to create a bucket in the OSS console.

Prerequisites

OSS is activated. For more information, see Activate OSS.

Procedure

  1. Log on to the OSS console.
  2. In the left-side navigation pane, click Buckets. On the Buckets page, click Create Bucket.
  3. In the Create Bucket panel, configure the required parameters described in the following table. You can keep the default settings for other parameters or configure the parameters after the bucket is created.
    Parameter Description
    Bucket Name Set the name of the bucket. The name of a bucket cannot be changed after the bucket is created.

    The bucket name must comply with the following conventions:

    • The name of a bucket must be unique in OSS in an Alibaba Cloud account.
    • The name can contain only lowercase letters, digits, and hyphens (-).
    • The name must start and end with a lowercase letter or a digit.
    • The name must be 3 to 63 characters in length.
    Region Select the region where the bucket is located. The region of a bucket cannot be changed after the bucket is created.

    To access the bucket from an Elastic Compute Service (ECS) instance over the internal network, select the region in which the ECS instance is located. For more information, see OSS domain names.

    Zone-redundant storage OSS provides zone-redundant storage (ZRS) to replicate user data across three zones within the same region. Even if one zone becomes unavailable, the data is still accessible.
    • Enable: If you enable ZRS for the bucket, objects in the bucket are stored by using ZRS. For example, if the storage class of the bucket is Standard, the objects in the bucket are Standard ZRS objects by default. For more information, see ZRS.
      Notice
      • ZRS is supported only in the regions described in .
      • You can enable ZRS for a bucket only when you create the bucket. ZRS cannot be disabled after you enable it for a bucket. Exercise caution when you enable this feature.
    • Disable: By default, ZRS is disabled for the bucket. If ZRS is disabled for a bucket to be created, objects in the bucket are stored by using locally redundant storage (LRS). For example, if the storage class of the bucket is Standard, the objects in the bucket are Standard LRS objects by default.
  4. Click OK.

Other implementation methods

Operation Implementation method
Create buckets ossutil
ossbrowser
API operations
Java SDK
Python SDK
Go SDK
C++ SDK
PHP SDK
C SDK
.NET
Node.js
Android
iOS

What to do next

Upload objects