# 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. The full outline of the LoWisa HCL (Terraform) course: 12 levels, 35 lessons. The first level is free.

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.

## What you can do as you go

| Where you are | What you can do |
| --- | --- |
| Start Here: Level 3 | You author real HCL: blocks, arguments, typed values and references that form a dependency graph. |
| Levels 4–7 | You wield variables, outputs, expressions and iteration: data-driven configuration without duplication. |
| Levels 8–10 | You design modules, respect state and lifecycle, and make changes safely by reading plans. |
| Levels 11–12 | You validate defensively, organise large codebases, and refactor state without destroying resources. |
| Project ladder | Five 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

| Level | Lessons in it |
| --- | --- |
| Start Here: Infrastructure as Declarative Code | Declarative vs Imperative Configuration; HCL and Terraform |
| Level 1: HCL Foundations | Blocks; Arguments; Expressions |
| Level 2: Values & Types | Primitive and Collection Types; Objects and Tuples; Type-Safe Configuration |
| Level 3: Variables & Outputs | Input Variables; Local Values; Outputs |
| Level 4: Expressions | Conditionals; For Expressions; Functions and Transformations |
| Level 5: Resources & Data | Resource Blocks; Data Sources; References and Dependencies |
| Level 6: Iteration | count; for_each; Dynamic Configuration Patterns |
| Level 7: Modules | Module Inputs and Outputs; Reusable Infrastructure; Module Design |
| Level 8: State-Aware Configuration | Resource Identity; Lifecycle Behaviour; Safe Infrastructure Changes |
| Level 9: Validation | Type Constraints; Preconditions and Validation; Defensive Infrastructure Configuration |
| Level 10: Maintainability | Project Organisation; Naming and Style; Large HCL Codebases |
| Level 11: HCL Mastery | Complex 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.

| Role | Project | The situation |
| --- | --- | --- |
| Infrastructure Developer | Static Website Infrastructure | Provision 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 Engineer | Multi-Environment Network Module | Build 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 Engineer | Rescue a Fragile Configuration | You 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 Engineer | Reusable Service Module With Tests | A 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 Specialist | Refactor a Monolithic State Safely | The 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](/help/checkpoints-and-flashcards/).
- **Games on what you have learned.** See [Revision games](/help/revision-games/).
- **On your phone.** The app is on Google Play and the App Store. See [Getting started](/help/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.

---

Source: https://lowisa.dev/courses/hcl/ · Updated 2026-11-25
