Minio中桶規則

https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html

A bucket is owned by the AWS account that created it. Bucket ownership is not transferable. When you create a bucket, you choose the Region to create the bucket in. After you create a bucket, you can't change its Region.

By default, you can create up to 100 buckets in each of your AWS accounts. If you need additional buckets, you can increase your account bucket limit to a maximum of 1,000 buckets by submitting a service limit increase. There is no difference in performance whether you use many buckets or just a few. For information about how to increase your bucket limit, see AWS Service Limits in the AWS General Reference.

默認情況下,每個AWS帳戶最多可以創建100個存儲桶。如果您需要額外的存儲桶,您可以通過提交服務限制增加,將您的帳戶存儲桶限制增加到最多1000個存儲桶。無論使用多個存儲桶還是僅使用幾個存儲桶,性能都沒有區別。有關如何增加bucket限制的信息,請參閱AWS通用參考資料中的AWS服務限制。

Reusing Bucket Names 重用Bucket名稱

If a bucket is empty, you can delete it. After a bucket is deleted, the name becomes available for reuse. However, after you delete the bucket, you might not be able to reuse the name for various reasons. For example, when you delete the bucket and the name becomes available for reuse, another account, might create a bucket with the name. Additionally, some time may pass before you can reuse the name of a deleted bucket. If you want to use the same bucket name, we recommend that you don't delete the bucket.

如果bucket爲空,則可以將其刪除。刪除一個bucket之後,該名稱就可以重用了。但是,刪除bucket之後,由於各種原因,您可能無法重用該名稱。例如,當您刪除bucket並且名稱可供重用時,另一個帳戶可能會創建一個具有該名稱的bucket。另外,在重用已刪除bucket的名稱之前,可能需要一些時間。如果要使用相同的bucket名稱,建議不要刪除bucket。

Objects and Buckets 對象和存儲桶

There is no limit to the number of objects that you can store in a bucket. You can store all of your objects in a single bucket, or you can organize them across several buckets. However, you can't create a bucket from within another bucket.

存儲在bucket中的對象數量沒有限制。您可以將所有對象存儲在一個bucket中,也可以跨多個bucket組織它們。但是,不能從另一個bucket中創建bucket。

Bucket Operations Bucket操作

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 create or delete buckets 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.

Amazon S3的高可用性工程專注於get、put、list和delete操作。由於bucket操作針對集中的全局資源空間,因此不適合在應用程序的高可用性代碼路徑上創建或刪除bucket。最好在單獨的初始化或設置例程中創建或刪除運行頻率較低的bucket。

Bucket Naming and Automatically Created Buckets Bucket命名和自動創建的Bucket

If your application automatically creates buckets, choose a bucket naming scheme that is unlikely to cause naming conflicts. Ensure that your application logic will choose a different bucket name if a bucket name is already taken.

如果應用程序自動創建bucket,請選擇不太可能導致命名衝突的bucket命名方案。確保應用程序邏輯將選擇不同的bucket名稱(如果已採用bucket名稱)。

Rules for Bucket Naming Bucket命名規則

After you create an S3 bucket, you can't change the bucket name, so choose the name wisely.

創建S3 bucket後,不能更改bucket名稱,所以要明智地選擇名稱。

Important 重要的

On March 1, 2018, we updated our naming conventions for S3 buckets in the US East (N. Virginia) Region to match the naming conventions that we use in all other worldwide AWS Regions. Amazon S3 no longer supports creating bucket names that contain uppercase letters or underscores. This change ensures that each bucket can be addressed using virtual host style addressing, such as https://myawsbucket.s3.us-east-1.amazonaws.com. We highly recommend that you review your existing bucket-creation processes to ensure that you follow these DNS-compliant naming conventions.

2018年3月1日,我們更新了美國東部(弗吉尼亞州北部)地區S3存儲桶的命名約定,以匹配我們在全球所有其他AWS地區使用的命名約定。Amazon S3不再支持創建包含大寫字母或下劃線的bucket名稱。此更改確保每個bucket都可以使用虛擬主機方式尋址,如https://myawsbucket.s3.us-east-1.amazonaws.com。我們強烈建議您檢查現有的bucket創建過程,以確保遵循這些符合DNS的命名約定。

Rules 規則

The following are the rules for naming S3 buckets in all AWS Regions:

以下是在所有AWS區域中命名S3存儲桶的規則:

  • Bucket names must be unique across all existing bucket names in Amazon S3.

  • Bucket名稱在Amazon S3中的所有現有Bucket名稱中必須是唯一的。

  • Bucket names must comply with DNS naming conventions.

  • Bucket名稱必須符合DNS命名約定。

  • Bucket names must be at least 3 and no more than 63 characters long.

  • 存儲桶名稱的長度必須至少爲3個字符,且不得超過63個字符。

  • Bucket names must not contain uppercase characters or underscores.

  • Bucket名稱不能包含大寫字符或下劃線。

  • Bucket names must start with a lowercase letter or number.

  • Bucket名稱必須以小寫字母或數字開頭。

  • Bucket names must be a series of one or more labels. Adjacent labels are separated by a single period (.). Bucket names can contain lowercase letters, numbers, and hyphens. Each label must start and end with a lowercase letter or a number.

  • Bucket名稱必須是一系列一個或多個標籤。相鄰的標籤用一個句點(.)分隔。Bucket名稱可以包含小寫字母、數字和連字符。每個標籤必須以小寫字母或數字開頭和結尾。

  • Bucket names must not be formatted as an IP address (for example, 192.168.5.4).

  • Bucket名稱不能格式化爲IP地址(例如192.168.5.4)。

  • When you use virtual hosted–style buckets with Secure Sockets Layer (SSL), the SSL wildcard certificate only matches buckets that don't contain periods. To work around this, use HTTP or write your own certificate verification logic. We recommend that you do not use periods (".") in bucket names when using virtual hosted–style buckets.

  • 當使用帶有安全套接字層(SSL)的虛擬託管樣式存儲桶時,SSL通配符證書只匹配不包含句點的存儲桶。要解決此問題,請使用HTTP或編寫自己的證書驗證邏輯。建議在使用虛擬託管樣式存儲桶時,不要在存儲桶名稱中使用句點(“.”)。

Legacy Non–DNS-Compliant Bucket Names

傳統的不符合DNS的Bucket名稱

Beginning on March 1, 2018, we updated our naming conventions for S3 buckets in the US East (N. Virginia) Region to require DNS-compliant names.

從2018年3月1日開始,我們更新了美國東部(弗吉尼亞州北部)地區S3存儲桶的命名約定,以要求符合DNS的名稱。

The US East (N. Virginia) Region previously allowed more relaxed standards for bucket naming, which could have resulted in a bucket name that is not DNS-compliant. For example, MyAWSbucket was a valid bucket name, even though it contains uppercase letters. If you try to access this bucket by using a virtual-hosted–style request (https://MyAWSbucket.s3.us-east-1.amazonaws.com/yourobject), the URL resolves to the bucket myawsbucket and not the bucket MyAWSbucket. In response, Amazon S3 returns a "bucket not found" error. For more information about virtual-hosted–style access to your buckets, see Virtual Hosting of Buckets.

美國東部(N.Virginia)地區此前允許更寬鬆的bucket命名標準,這可能導致bucket名稱不符合DNS。例如,MyAWSbucket是一個有效的bucket名稱,即使它包含大寫字母。如果嘗試使用虛擬託管樣式的請求(https://MyAWSbucket.s3.us-east-1.amazonaws.com/yourobject)訪問此bucket,則URL將解析爲bucket MyAWSbucket,而不是bucket MyAWSbucket。作爲響應,Amazon S3返回一個“bucket not found”錯誤。有關虛擬託管式訪問存儲桶的詳細信息,請參閱存儲桶的虛擬託管。

The legacy rules for bucket names in the US East (N. Virginia) Region allowed bucket names to be as long as 255 characters, and bucket names could contain any combination of uppercase letters, lowercase letters, numbers, periods (.), hyphens (-), and underscores (_).

美國東部(弗吉尼亞州北部)地區的舊版桶名規則允許桶名長達255個字符,桶名可以包含大寫字母、小寫字母、數字、句點(.)、連字符(-)和下劃線(u)的任意組合。

The name of the bucket used for Amazon S3 Transfer Acceleration must be DNS-compliant and must not contain periods ("."). For more information about transfer acceleration, see Amazon S3 Transfer Acceleration.

用於Amazon S3傳輸加速的bucket的名稱必須符合DNS,並且不能包含句點(“.”)。有關傳輸加速的更多信息,請參見Amazon S3傳輸加速。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章