To complete the deployment, you will need:
- your project's ID
- your OAuth Client ID
- your OAuth Client Secret
- your OAuth Refresh Token
- your new calendar's ID
To easily deploy the GCP resources we need to use OTGC, we will use Terraform.
- Open Google Cloud Console
- Click on the project icon and select the Google project you use previously for OTGC
- Open a Cloud Shell inside your project by clicking on the shell icon.
- Copy this command in the shell input and press ENTER.
git clone https://github.com/MickaelFontes/otgc.git && cd otgc/terraform && chmod +x install.sh
- Then, run the
install.sh
script, by providing it the tokens and IDs pasted in your open notepad window. To do so, copy the following command and replace the uppercase words with the values in your notepad. Note that theONBOARD_PASSWORD
argument is in single quotes to escape parameter expansion (be careful if your password contains a$
sign).
/!\ The order matters !
./install.sh PROJECT_ID CLIENT_ID CLIENT_SECRET REFRESH_TOKEN CALENDAR_ID ONBOARD_USERNAME 'ONBOARD_PASSWORD'
Enter 'yes' when asked by Terraform. ANJOY