Recently I have been using google cloud compute. Having some difficulty using their command line interface.
One of the commands that i use is:
gcloud preview replica-pools –zone asia-east1-a create –size 3 –template Desktop/replica-pool.json
unfortunately it gives me a ERROR: (gcloud) Invalid choice: ‘preview’.
The way to solve this is to key in this command “gcloud components update preview” to install preview.
The following components will be installed:
| Developer Preview gcloud Commands | 2014.09.09 | < 1 MB |
Do you want to continue (Y/n)? y
Creating update staging area…
Installing: Developer Preview gcloud Commands … Done
Creating backup and activating new installation…
And tada! It is done!