Course

Learn HCL (Terraform)

Infrastructure as declarative code: blocks, expressions, modules, state and safe changes: until you author Terraform that a team can review, plan and apply without fear.

This is the whole HCL (Terraform) course in the LoWisa phone app, level by level: 12 levels, 35 lessons and 105 ideas, each taught and then checked. The first level, Start Here: Infrastructure as Declarative Code, is free.

Updated 2026-11-25

What you can do as you go

Where you areWhat you can do
Start Here: Level 3You author real HCL: blocks, arguments, typed values and references that form a dependency graph.
Levels 4–7You wield variables, outputs, expressions and iteration: data-driven configuration without duplication.
Levels 8–10You design modules, respect state and lifecycle, and make changes safely by reading plans.
Levels 11–12You validate defensively, organise large codebases, and refactor state without destroying resources.
Project ladderFive desktop app projects from a static site to a safe state-split refactor: infrastructure as reviewable, tested code.

The HCL (Terraform) course, level by level

LevelLessons in it
Start Here: Infrastructure as Declarative CodeDeclarative vs Imperative Configuration; HCL and Terraform
Level 1: HCL FoundationsBlocks; Arguments; Expressions
Level 2: Values & TypesPrimitive and Collection Types; Objects and Tuples; Type-Safe Configuration
Level 3: Variables & OutputsInput Variables; Local Values; Outputs
Level 4: ExpressionsConditionals; For Expressions; Functions and Transformations
Level 5: Resources & DataResource Blocks; Data Sources; References and Dependencies
Level 6: Iterationcount; for_each; Dynamic Configuration Patterns
Level 7: ModulesModule Inputs and Outputs; Reusable Infrastructure; Module Design
Level 8: State-Aware ConfigurationResource Identity; Lifecycle Behaviour; Safe Infrastructure Changes
Level 9: ValidationType Constraints; Preconditions and Validation; Defensive Infrastructure Configuration
Level 10: MaintainabilityProject Organisation; Naming and Style; Large HCL Codebases
Level 11: HCL MasteryComplex Expression Design; Reusable Infrastructure APIs; Reading and Improving Production HCL

Every level ends with a checkpoint and flashcards on what it taught.

Start Here: Infrastructure as Declarative Code: what the free first level teaches

Declarative vs Imperative Configuration

  • Declarative desired state. HCL declares the desired state: you describe what should exist, not the steps to build it.
  • The tool reconciles. The tool computes the difference between reality and your declaration, then makes reality match.
  • Idempotent by design. Applying twice changes nothing the second time: idempotence is the model’s core promise.

HCL and Terraform

  • HCL the language. HCL is the configuration language; Terraform (and others) is the engine that reads it.
  • Providers. A provider teaches the engine an API: AWS, GCP, Kubernetes: resources speaking to real systems.
  • Why IaC. Infrastructure as code is versioned, reviewed and reproducible: clicking in a console is none of those.

Projects you build

The course has 5 projects, built in the LoWisa desktop app, each in the role of someone who does this work.

RoleProjectThe situation
Infrastructure DeveloperStatic Website InfrastructureProvision a static website’s infrastructure as code: storage, CDN and DNS: typed variables, sensible outputs, and a plan a reviewer can read at a glance.
Cloud EngineerMulti-Environment Network ModuleBuild a reusable network module and consume it across dev, staging and prod: for_each subnets, data-driven CIDRs, and no copy-pasted configuration anywhere.
Platform EngineerRescue a Fragile ConfigurationYou inherit a configuration that terrifies the team: count-based churn, hardcoded IDs, no validation, a plan that wants to destroy the database. Make it safe to apply.
Senior Platform EngineerReusable Service Module With TestsA platform team needs a paved road: a service module (compute, load balancer, DNS, monitoring) that app teams consume safely: versioned, validated, documented and tested.
Infrastructure SpecialistRefactor a Monolithic State SafelyThe mastery build: a large single-state configuration is slow, risky and entangled. Split it into domains and refactor without destroying a single resource: the surgery senior platform engineers are hired for.

How you learn it

  • One idea at a time. Each lesson teaches a few ideas and asks you about each before it moves on.
  • A checkpoint and flashcards at the end of every level. See Checkpoints and flashcards.
  • Games on what you have learned. See Revision games.
  • On your phone. The app is on Google Play and the App Store. See Getting started.

Frequently asked questions

How many levels does the LoWisa HCL (Terraform) course have?

12 levels with 35 lessons, from Start Here: Infrastructure as Declarative Code to Level 11: HCL Mastery.

Is the HCL (Terraform) course free?

The first level, Start Here: Infrastructure as Declarative Code, is free, with its checkpoint and flashcards. A plan opens the rest; see Plans and credits in the Help centre.

Where does the HCL (Terraform) course start?

With Start Here: Infrastructure as Declarative Code. Its first lesson is "Declarative vs Imperative Configuration".

Start HCL (Terraform) with the free first level

LoWisa is on Google Play and the App Store.