- 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
- Register your SSH Key
- if you don't have it, you can make it via
ssh-keygen -t ed25519
- if you don't have it, you can make it via
- Install (CloudShell has
gh
by default) - Execute
$ 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...
- Go to "Service Accounts" page under IAM&Admin
https://console.cloud.google.com/iam-admin/serviceaccounts
- Click "CREATE 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
- Install gcloud command (CloudShell has
gcloud
by default) - login
$ gcloud auth login
...
You are now logged in as [******@*******].