Skip to content

Terraform Primer

This lab will walk through implementing infrastructure automation using infrastructure as code via Terraform. The Terraform will be run locally and executed on Terraform Enterprise.

Estimated time to complete: 3 hours


Overview

You will create infrastructure as code in a repository and deploy an Azure App Service to Azure using Terraform and the Azure Resource Manager (azurerm) Terraform Provider.

  • Build and run vanilla Terraform
  • Familiarize with the Terraform lifecycle
  • Use the azurerm for Terraform to manage Azure resources
  • Execute Terraform on Terraform Enterprise (TFE)
  • Understand state files in TFE
  • Deploy infrastructure on Azure account (Sandbox subscription)
  • Abstract vanilla Terraform into approved modules

Requirements

If there is not one already, create a fork from the Terraform repo to work on your own Git repo. Only create one fork for your workshop, whether this is a for a team or individual.

Begin the development workflow

Following ticket-based engineering principals, begin your work by creating your ticket in the Dojo Sandbox under the Terraform lab feature and create a branch from the your forked repo.