Get project name of GCS bucket
Sometimes when you are managing many GCS buckets - You may lose the project they exist in.
If you aren't using a swanky naming convention like
<proj-name>-<name> then this is for you.
We are able to use the GCS API to get information about the bucket.
As this is using the GCP API, you will have to at least have the below permissions/roles
- View access on the project
Get project Number
Convert number to project name
Want to make this site better? Open a PR or help fund hosting costs