Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.39 KB

README.md

File metadata and controls

36 lines (28 loc) · 1.39 KB

Deploy with Terraform

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.

  1. Open Google Cloud Console Cloud Console
  2. Click on the project icon and select the Google project you use previously for OTGC Select project
  3. Open a Cloud Shell inside your project by clicking on the shell icon. Shell icon
  4. 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
  1. 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 the ONBOARD_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