0

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?

8
  • Stack Overflow has much more experience with this than most folks here. Jun 15, 2017 at 19:14
  • @quadruplebucky thanks. I will try asking it there Jun 16, 2017 at 19:44
  • @peterh Thanks for pointing that out. Auto Correct always takes its toll. :) Jun 17, 2017 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
    Jun 17, 2017 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 :) Jun 20, 2017 at 10:51

1 Answer 1

1

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

2
  • 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? Jun 20, 2017 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, 2017 at 18:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .