Add the corresponding variables to file variables.tf
[ 1 ] Start the Cloud-Shell
Next to your region, in the upper right corner, there is a square that indicates a terminal (as marked with orange).
Click on it, and wait for a couple of minutes until the Cloud-Shell is prepared.
[ 2 ] Generate SSH keys
Generate the default files of ssh keys (~/.ssh/id_rsa and ~/.ssh/id_rsa.pub)under user's home directory with the help of command:
zack@cloudshell:~ (eu-frankfurt-1)$ ssh-keygen
Choose the default option, by pressing Enter to each requirement.
Practice example:
zack@cloudshell:~ (eu-frankfurt-1)$ pwd
/home/zack
zack@cloudshell:ExampleMySqlDbAndInstance (eu-frankfurt-1)$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/zack/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/zack/.ssh/id_rsa
Your public key has been saved in home/zack/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:
The key's randomart image is:
+---[RSA 3072]----+
|..oo..o o. .o |
|oo o. + ..o.E |
|* . . .o.. . |
|o. . . . .o . |
|. o o o S . |
| o = . . |
| o . = . . |
|.=.+o+.. o o . |
|.+Oo.+o.. . o |
+----[SHA256]-----+
Check if the ssh keys have been generated under your home directory:
zack@cloudshell:~ (eu-frankfurt-1)$ ls ~/.ssh/id_*
/home/zack/.ssh/id_rsa /home/zack/.ssh/id_rsa.pub
[ 3 ] Clone the Github repository
Clone the Github repository with the usual "git clone" command: