Terraform on Google Cloud with GitHub Actions: Delivered in 1-2-1 Sessions
One-to-one sessions in which the learner automated Google Cloud infrastructure with Terraform and ran every change through a GitHub Actions pipeline.
- 70%Hands-on labs
- 30%Talks & demos
- 5Modules
- 1-2-1One-to-one sessions
- CI/CDGitHub Actions pipeline
Pipeline built in the sessions
Infrastructure as Code on Google Cloud
- Git push
- GitHub Actions
- terraform init
- terraform plan
- terraform apply
- VPC & Compute Engine
- IAM & Cloud SQL
70% Labs, 30% Talks
Every concept was followed straight away by a lab, so participants left with working code, not just slides.
What participants built in the labs
- Configured Terraform with the Google provider
- Created a VPC, Compute Engine VM, IAM bindings and Cloud SQL with code
- Refactored the code into reusable modules
- Ran terraform plan and apply from a GitHub Actions workflow
What the talks covered
- Why infrastructure as code beats console clicks
- How Terraform state works
- Best practices for Terraform in a DevOps team
Session goal: The learner writes reusable Terraform for Google Cloud and runs plan and apply from GitHub Actions, the way DevOps teams work in practice.
Topics Delivered
The modules covered in the 1-2-1 sessions, with the activity for each.
-
01 Talk + demo
Infrastructure as Code & Terraform Basics
- Why infrastructure as code
- How Terraform works: providers, resources and state
- Setting up Terraform for Google Cloud
Discussion + demo
-
02 Hands-on
Providers, Variables & State
- Configuring the Google provider
- Input variables and outputs
- Managing Terraform state
Lab: first Terraform project on GCP
-
03 Hands-on
Google Cloud Resources with Terraform
- VPC networks and subnets
- Compute Engine instances
- IAM roles and service accounts
- Cloud SQL databases
Lab: build a VPC, VM, IAM and Cloud SQL
-
04 Hands-on
Reusable Modules & Best Practices
- Writing reusable Terraform modules
- Project layout and naming
- Best practices for teams
Lab: refactor into reusable modules
-
05 Hands-on
CI/CD with GitHub Actions
- A GitHub Actions workflow for Terraform
- Plan and apply on every change
- Handling credentials securely
Lab: run Terraform from a pipeline
- Terraform
- Google Cloud (GCP)
- VPC
- Compute Engine
- IAM
- Cloud SQL
- GitHub Actions
- Infrastructure as Code
What the Learner Took Home
Terraform code
Working, reusable Terraform for VPC, Compute Engine, IAM and Cloud SQL.
GitHub Actions workflow
A pipeline that runs Terraform on every change.
Project guide
The README to rebuild and extend the setup on any GCP project.
About This Programme
What is 1-2-1 Terraform training?
Live online sessions with one trainer and one learner, paced around the learner's own goals and projects.
Which Google Cloud services are covered?
VPC networks, Compute Engine, IAM and Cloud SQL, all created and managed with Terraform.
Is CI/CD included?
Yes. Terraform runs from a GitHub Actions workflow, so every change is planned and applied by the pipeline.
Can I get the same training?
Yes. It is available as 1-2-1 sessions, in a retail batch or as a corporate programme.
Want this programme for your team?
We deliver Terraform on Google Cloud and other AI, Cloud and DevOps programmes on-site or online, 70% hands-on.