Skip to content

Repository for our Terraform workshop during HoGent Tech & Trend days

Notifications You must be signed in to change notification settings

inthepocket/terraform-workshop-hogent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Terraform workshop HoGent

This repository contains the IaC (infrastructure as code) for the Terraform workshop for HoGent during the Tech & Trend days (February 16, 2023).

Goal of this workshop

The goal of this workshop is to deploy an immutable (not possible to change after creation) webserver. We will have a first hands-on with Terraform and run some basic commands. We will use Google Cloud as cloud provider to apply this infrastructure.

Prerequisites

  • Terraform (Add it to your PATH)
  • An active Google Cloud account with JSON key file

Workshop

Install Terraform

  1. Install Terraform (https://www.terraform.io/downloads)

  2. Test the installation with terraform version

Google Cloud authentication

  1. export the JSON key file for authentication with Google Cloud (https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/getting_started#adding-credentials)

    export GOOGLE_APPLICATION_CREDENTIALS={path_to_key_file}

Write your infrastructure as code and run Terraform

  1. Terraform init

    terraform init
  2. Terraform plan

    terraform plan
  3. Terraform apply

    terraform apply
  4. Destroy your infrastructure

    terraform destroy

About

Repository for our Terraform workshop during HoGent Tech & Trend days

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published