Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

what is the gcp equivalent to boto3?

This is a newbie question.

I've just finished a project on AWS and you can automate their backend configuration using either the aws-cli or boto3.  For boto3 you can use python to both login and establish sessions with the individual services.

However when I look at gcp, there is a dependency on using the 'gcloud login cli' before you can then use other services.  Is that correct?

As a specific example, I don't like that I need to run gcloud auth, before kops.:

gcloud auth application-default login
kops create cluster cluster1.k8s.local --zones us-west1-b --state gs://seans-bucket --project=gke-sean-2

Would it be possible for kops to initiate the authentication on it's own?

3 0 3,133
0 REPLIES 0