Google Cloud Platform (GCP)

Google Cloud Platform (GCP) 関連のメモ

Project List

gcloud projects list

PROJECT_ID             NAME      PROJECT_NUMBER
abcde-fghijklm-123456  HogeHoge  123456789012

Project ID

gcloud projects list \
  --filter="$(gcloud config get-value project)" \
  --format="value(PROJECT_ID)"

# one liner
PROJECT_ID=$(gcloud projects list --filter="$(gcloud config get-value project)" --format="value(PROJECT_ID)"); echo $PROJECT_ID

Project Number

gcloud projects list \
  --filter="$(gcloud config get-value project)" \
  --format="value(PROJECT_NUMBER)"

# one liner
PROJECT_NUMBER=$(gcloud projects list --filter="$(gcloud config get-value project)" --format="value(PROJECT_NUMBER)"); echo $PROJECT_NUMBER

Cloud Storage FUSE

Cloud Storage FUSE | Google Cloud