Reputation: 3127
I've setup a one-click LAMP stack on Google Cloud Engine, and that created a VM instance that I'd like to protect against accidental deletion
However, whenever I try to run the command using the gcloud command line tool, I get the following error:
ERROR: (gcloud.compute.instances.update) unrecognized arguments: --deletion-protection
Did anyone ever got this to work? Is there a mistake in the documentation?
Any help would be greatly appreciated,
Thanks!
Upvotes: 0
Views: 1319
Reputation: 5075
Can you post the exact command you are running? Because I tried both the commands in the documentation and in both cases I succeed in setting up the protection:
gcloud compute instances create new-instance --deletion-protection
gcloud compute instances update instance-name --deletion-protection
On the other hand which is the version of the Google SDK you are using (check through gcloud version
)? Mine it is "Google Cloud SDK 183.0.0"
You can consider to update it and retry with:
gcloud components update
Upvotes: 1