Configure Google Cloud SDK

This guide will walk you through configuring the Google Cloud SDK (gcloud) for your Google account.

What You’ll Need

Procedure

  1. Authorize your user account:

    root@rok-tools:~# gcloud auth login --no-launch-browser Go to the following link in your browser: https://accounts.google.com/o/oauth2/auth?....
  2. Open your browser, go to the link shown in your terminal.

  3. Sign in with your account credentials in the browser, press Allow to allow Google Cloud SDK to access your Google account, and copy the verification code.

  4. Switch back to your management environment, and paste the verification code.

    Enter verification code: You are now logged in as [jdoe@example.com].

Verify

  1. Verify you have successfully signed in to your account:

    root@rok-tools:~# gcloud auth list Credentialed Accounts ACTIVE ACCOUNT * jdoe@example.com

Summary

You have successfully authorized Google Cloud SDK for your account in your management environment.

What’s Next

The next step is to set up your cloud environment.