22 articles Google Cloud Platform Page 2 / 3

How to get compute engine service account using gcloud command?

# gcloud iam service-accounts list –filter=”displayName:’Compute Engine default service account'” –format=’value(email)’ 285466277759-compute@developer.gserviceaccount.com export COMPUTE_SVC_ACCOUNT=$(gcloud iam service-accounts list –filter=”displayName:’Compute Engine default service account'” –format=’value(email)’)

How to create google cloud project using gcloud command?

https://cloud.google.com/sdk/gcloud/reference/projects/create   # gcloud projects create ha-lamp-test –name=”HA LAMP” –labels=type=ha-lamp Create in progress for [https://cloudresourcemanager.googleapis.com/v1/projects/ha-lamp-test]. Waiting for [operations/pc.6388632910055007906] to finish…done

How to enable API via gcloud command?

i.e. gcloud services enable storage-api.googleapis.com gcloud services enable storage-component.googleapis.com gcloud services enable compute.googleapis.com gcloud services enable sql-component.googleapis.com gcloud services enable sqladmin.googleapis.com gcloud services enable cloudtrace.googleapis.com gcloud services enable logging.googleapis.com gcloud services enable monitoring.googleapis.com gcloud services enable deploymentmanager.googleapis.com gcloud services enable runtimeconfig.googleapis.com

How to install Kubernetes Engine client via gcloud command?

gcloud components install kubectl Your current Cloud SDK version is: 191.0.0 Installing components from version: 191.0.0 ┌──────────────────────────────────────────────────────────────────┐ │ These components will be installed. │ ├─────────────────────┬─────────────────────┬──────────────────────┤ │ Name │ Version │ Size │ ├─────────────────────┼─────────────────────┼──────────────────────┤ │ kubectl │ │ │ │ kubectl │ 1.8.6 │ 12.3 MiB │ └─────────────────────┴─────────────────────┴──────────────────────┘ For the latest full release notes, please visit:…