Whenever I create a Compute Engine instance, it installs the google-cloud-sdk by default on the server. And that installs and configures BOTO on the server and set environment variables for that.

What I want is to not have anything remotely related to BOTO on the server. I have tried the documentation in various places but no luck anywhere.

Anyone can help me?

  • Stack Overflow has much more experience with this than most folks here. – quadruplebucky Jun 15 '17 at 19:14
  • @quadruplebucky thanks. I will try asking it there – Nishant Dixit Jun 16 '17 at 19:44
  • @peterh Thanks for pointing that out. Auto Correct always takes its toll. :) – Nishant Dixit Jun 17 '17 at 17:07
  • Had it been too hard to fix it? Btw, what the heck is a "boto"? My autocorrect algorithm says you tried to write "both", but I am not sure. There is an "edit" link below your question, you can always edit your own posts. You don't need a native-level English to communicate here, but if you can avoid this top 6 most annoying mistakes, you posts will be probably okay. If your question is unclear, incomprehensible, it will be closed. – peterh - Reinstate Monica Jun 17 '17 at 18:47
  • @peterh thanks for pointing out the resources. I will surely look into that and try to not make these mistakes again. Also, BOTO is a python package that provides interface to Amazon Web Services. you can find info about boto here - link . It's quite popular actually :) – Nishant Dixit Jun 20 '17 at 10:51

Cloud SDK is pre-installed on the public images provided by Google. It is a useful tool when your VM needs to interact with other resources in your project.

I am not sure what is the reason you want to uninstall it. When you create a VM, you are given the possibility to define the service account and the scopes that will work with that VM. That service account will be the one authenticated on the gcloud tool running in the VM. That account and the scopes of the VM will be the ones limiting access to other resources. For additional information check this article

You can always choose not to link a service account at the creation time of the VM. If you do that, Cloud SDK will not have any credentials to access any other resources in your project. i.e.

gcloud auth list
No credentialed accounts.
To login, run:  $ gcloud auth login `ACCOUNT`

Check this discussion which also addresses the same topic. If you really want to remove Cloud SDK, you can follow the steps provided here

  • Hi Carlos. Thanks for the effort. However, I am not particularly trying to un-install google-cloud-sdk but BOTO instead. Do you happen to have any insights on that? – Nishant Dixit Jun 20 '17 at 10:55
  • That seems to be somehow different. I uninstalled the package on a Debian image following the commands provided here. If you need to spin new VMs without it, you can create a custom image (after removing the package). Then use that image instead of the public one to spin the other VMs. – Carlos Jun 20 '17 at 18:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.