Data Science Collective

Advice, insights, and ideas from the Medium data science community

Follow publication

Member-only story

Deploy Terraform with GitHub Actions

Charlotte Patola
Data Science Collective
7 min readFeb 24, 2025

--

Terraform & GitHub Actions

Would it not be nice to be able to deploy Terraform resources automatically every time one pushes to main? I already knew this way of working from my workplace, but I wanted to learn how to set up the process myself. This article is the outcome of what I have learned. If you are in the same situation I was a few months back, I hope you will find it helpful.

This tutorial is for people new to Terraform and Infrastructure as Code (IaC). It follows up on this post, which introduced the basics of Terraform.

1. Prerequisites

  1. A Google Cloud Platform (GCP) account with a project and a service account. The service account needs the rights to create, modify, and destroy the resources we will be working with
  2. A GitHub Account
  3. A local, cloned* version of this repo (alternatively, create the repo yourself by going through the steps listed in this tutorial

2. Our Demo Case

This tutorial aims to create two Google Cloud Platform (GCP) Big Query tables and views within the finance and HR datasets. We will make the resources using Terraform code and automate the…

--

--

Data Science Collective
Data Science Collective

Published in Data Science Collective

Advice, insights, and ideas from the Medium data science community

Charlotte Patola
Charlotte Patola

Written by Charlotte Patola

Data Analyst in Financial Services / E-Commerce

No responses yet

Write a response