Better Programming

Advice for programmers.

Follow publication

How Terraform Works: A Visual Intro

Understand Terraform through illustrations

Bill
Better Programming
Published in
3 min readMay 13, 2022

As a way to refresh my terraform knowledge, I keep a stash of some diagrams.

In any topic, I always find the exercise of creating illustrations very helpful for learning.
They also tend to be helpful when I have to explain some terraform concepts to my peers.

Terraform’s main features

How it works

The core workflow

The terraform basic CLI | Running terraform

You usually run terrafom using the CLI in a directory that contains . tf files .

terraform init
terraform plan
terraform apply

The HCL Syntax

A bit of the language hierarchy

Block types

Specialized blocks

The Terraform block

The provider block

Variables block

Variable type constraints and validation nested block

Variable definition

Check out the follow-up article: Terraform Modules Illustrated

If you think this was helpful and would like to show your support here’s my :


PayPal page
Buy me a coffee page
Ko-fi page

or follow me on twitter: https://twitter.com/mfund0_

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Bill
Bill

Written by Bill

Infrastructure & Platform Engineer | SRE | https://twitter.com/mfund0_ | Hit the follow button for DevOps content 😊

Responses (13)

Write a response