Hands-On Machine Learning on Google Cloud Platform
上QQ阅读APP看书,第一时间看更新

Naming a bucket

To name a bucket, we have to follow some rules imposed by the fact; as we anticipated, all the buckets reside in the only Google Storage namespace. Bucket names must comply with the following rules:

  • They must be 3 to 63 characters long
  • They must start and end with a number or a letter
  • They must contain only lowercase letters, numbers, dots, and dashes
  • They cannot be represented as an IP address in dotted decimal notation
  • They cannot start with the prefix GOOG
  • They cannot contain two adjacent points or a dash before or after a point

Finally, it should be noted that once you have created the name of a bucket, you cannot change it. To change it, you should create a new bucket with the desired name and move the contents from the old bucket to the new bucket.