Problem:
bash: gcloud: command not found
Solution:
Install & Setup Google Cloud SDK
Steps:
1. Installing SDK
1 2 3 4 5 6 7 8 9 10 11 |
sudo tee -a /etc/yum.repos.d/google-cloud-sdk.repo << EOM [google-cloud-sdk] name=Google Cloud SDK baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64 enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg EOM yum install google-cloud-sdk -y |
Reference: https://cloud.google.com/sdk/downloads
2. Initializing Cloud SDK
1 |
gcloud init --console-only |
Reference: https://cloud.google.com/sdk/docs/initializing
3. Authorizing Cloud SDK Tools
1 |
gcloud auth activate-service-account --key-file [KEY_FILE] |
Reference: https://cloud.google.com/sdk/docs/authorizing