Preparation
We will be deploying an example project to Cloud Run and Compute engine with HTTP LB with Terraform.
For these exercises you will need Terraform CLI installed
Installation
You can follow installation instruction in this link for all major operating systems.
Working Directory
Create terraform
folder in your project folder.
GCP Credentials
Terraform needs GCP credentials to be configured:
Add workshop-sa-key.json
to your working directory and export it as environment variable.
export GOOGLE_APPLICATION_CREDENTIALS="workshop-sa-key.json"
Warning
Long living Service Account keys are usually considered to be a bad thing, but for these exercises quite OK!
Exercise time
Start doing exercises and begin with the initialization.
Good luck & have fun!