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 ...

Get Hands-On Machine Learning on Google Cloud Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.