Skip to Content
Google Cloud Platform for Developers
book

Google Cloud Platform for Developers

by Ted Hunter, Steven Porter
July 2018
Intermediate to advanced
506 pages
16h 2m
English
Packt Publishing
Content preview from Google Cloud Platform for Developers

Bucket names

Cloud Storage buckets must follow a few general naming conventions in order to be considered valid. These names must adhere to the following:

  • Be between 3 and 63 characters in length (unless using domain naming)
  • Only contain lowercase letters, numbers, dashes, underscores, and periods
  • Begin and end with a number or letter
  • Not contain anything similar to the reserved word google

Given these constraints, a resulting regular expression for validating bucket names may look something like the following:

/^[a-z0-9][a-z0-9_-]{1,61}[a-z0-9]$/
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google Cloud Platform in Action

Google Cloud Platform in Action

John J. (JJ) Geewax
Google Cloud Platform for Architects

Google Cloud Platform for Architects

Vitthal Srinivasan, Loonycorn Ravi, Judy Raj

Publisher Resources

ISBN: 9781788837675Supplemental Content