Creating buckets
In GCP, there are multiple ways of interacting with objects. In case of Cloud Storage buckets, we can use the GUI console, gsutil
command line, or REST (JSON or XML) API. Creating a bucket in GCP Cloud storage requires three fields:
- Region
- Storage class
- Universally unique name
Note
When you create a regional bucket, you are prompted for the region in which that bucket will be housed; you are not prompted for the specific zones though. The system decides that.When you create a multi-regional bucket, you are prompted to pick from one of three multi-region locations–Asia, the EU, and the US. Again, you can't pick which specific regions within that house your data; the system decides that too. This could be a significant issue if you have a statutory requirement to meet (for example, the data should never leave Country X within APAC).
We have already discussed the regions and storage classes and the naming, too, has its own set of rules to be followed. The name should be universally...