-
Install terraform binary on your system
-
Signup and create a project if you don't have a gcp account
-
Clone the repository
-
Run the terraform from the terraform-new folder:
- terraform init -reconfigure
- terraform validate
- terraform plan
- terraform apply
-
Create a Cloud build trigger for the cloned repository in step 3
-
To deploy the workload:
- Build the Dockerfile and push to GCP Container registery
- Change the image in the following files flask.yaml, and cloudbuild.yaml to your own image
- Create a small change and push to github to trigger the deployment, or
- Trigger it manually from the GCP console