I have been playing Valheim for almost two months and thought it would be a fun Terraform project to create a module for others to use.


This walk through will show you how to deploy a dedicated Valheim server utilizing the IaC tool Terraform on Google Cloud Platform.

(This walkthrough is geared to those who have a basic understanding of GCP and Terraform already. Find my article on “Setting Up Terraform Cloud with GCP for more beginner info.)

What is Valheim?

Valheim is an early access survival game based around norse mythology that launched on Steam on February 2nd 2021; it has sold…

This demo is a basic walkthrough for setting up Terraform Cloud for GCP. This demo is geared to those who have a basic understanding of GCP and Terraform already.

When writing this, HashiCorp’s only documentation for setting up Terraform Cloud was in AWS lingo, I am hoping they will be adding a GCP equivalent demo soon. I spent about two days trying to figure how to get GCP and Terraform Cloud to work properly. My hope is this helps some of my fellow GCP cloud users.

Why Terraform cloud vs CLI?

  • Remote state management
  • Easy VCS integrations
  • Audibility and governance


Google Cloud offers the ability to create custom roles at the project level and organization level. We will create a custom role and deploy it using a YAML file and some gcloud cli though cloudshell.

Before you begin, please ensure you have the right roles/permissions to create roles inside a project. A minimum permission of “iam.roles.create” is required.

General structure of YAML file needed for IAM

Below is the structure the YAML file needs to follow to create an IAM role:

title: role-title
description: role-description
stage: launch-stage
- permission-1
- permission-2

Creating a YAML file

Create the file by entering the follow command in cloudshell:


Today I will be showing you how to create an Apache web server using the IaC tool called, Terraform, inside a GCP cloud environment.

This walk-though has the expectation that you already have Terraform installed, gone through the how-to tutorial they provide, and have already created a service account with the appropriate json key in GCP.

What is IaC?

Infrastructure as code (IaC) has been steadily increasing as companies are adopting the devops culture into their environments. IBM’s definitions of IaC “…automates the provisioning of infrastructure, enabling your organization to develop, deploy, and scale cloud applications with greater speed, less risk, and reduced…

Associate Cloud Engineer Badge

I recently sat for (and passed) Google’s Associate Cloud Engineer exam. I wanted to write a brief blog, share my experience, and maybe even help some others along the way.


As of October 2020, this is Google’s only Associate level exam. You will have ~2 hours to answer 50 questions. There are no prerequisites to test, so anyone wanting to take it can sign up; however, Google recommends at least 6 months hands on experience with GCP.

My Approach:

I started studying for this exam in late July and tested in early October. In the beginning, I read Dan Sullivan’s book and…

Jacob Luna

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store