Configure Google Cloud SDK

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

Note

If you have already configured gcloud for your account, you may proceed to the Verify section.

What You’ll Need

Procedure

  1. Authorize your user account:

    root@rok-tools:~# gcloud auth login
    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 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.