Skip to content

Latest commit

 

History

History
77 lines (54 loc) · 2.85 KB

File metadata and controls

77 lines (54 loc) · 2.85 KB

Preparation: Setup Google Cloud and GitHub

  • You need to register Google Cloud and GitHub to do this training
  • For the next section, you log-in to each service in this preparation

Procedure

GitHub

Register SSH Key

  • Register your SSH Key
    • if you don't have it, you can make it via ssh-keygen -t ed25519

gh command

$ gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? HTTPS
? How would you like to authenticate GitHub CLI? Login with a web browser

! First copy your one-time code: ****-****
Press Enter to open github.com in your browser...

Google Cloud

Login from Web Browser

Create a Service Account

  • Input the service account name
    • Name: training-sa

  • Grant Owner to the service account

  • Click the service account you created

  • Create New Key

  • Choose JSON type, then download the json

  • Confirm the json file you downloaded

Login via gcloud command

$ gcloud auth login
...
You are now logged in as [******@*******].