🏗️ Free Terraform course: Infrastructure as Code in 45 minutes
Welcome to the most pedagogical Terraform discovery course. In 7 short lessons, you will understand exactly what Terraform is, why it has become the Infrastructure as Code standard in 2026, and how it is actually used in companies — whether on AWS, Azure, GCP or in a private infrastructure.
What this course aims for: answering once and for all the questions "what is Terraform?", "Terraform or Ansible?", "what is the state file?", "why OpenTofu?", "Terraform or Pulumi?" — with concrete examples and no unnecessary jargon.
What this course does not do: teach you to write real HCL or type terraform init, terraform plan, terraform apply. That practical mastery is the subject of the Premium Terraform Course.
What you will discover
Course content
| # | Lesson | Main objective | Duration |
|---|---|---|---|
| 1 | The problem Terraform solves | Understand why manual cloud infrastructure management collapses | 6 min |
| 2 | What is Terraform? | Rigorous definition, HashiCorp history, BSL licence, OpenTofu | 7 min |
| 3 | HCL, plan, apply | Terraform's declarative cycle with a real HCL example | 7 min |
| 4 | Providers, resources, modules | The trinity that makes up all Terraform code | 7 min |
| 5 | The state file | The file that makes Terraform smart: backend, locking, drift | 7 min |
| 6 | Ecosystem and alternatives | Terraform Cloud, OpenTofu, Pulumi, CloudFormation, Terragrunt | 6 min |
| 7 | Real use cases + FAQ | Where Terraform is really used + 14 frequent questions | 5 min |
| 8 | Quiz and attestation | Validate what you learned with 5 corrected questions | 3 min |
Is this course for you?
- You are a developer or junior DevOps and you hear "Terraform" everywhere without knowing precisely what it is.
- You are a system administrator who has done a lot of Ansible and you want to understand how it fits with Terraform.
- You are in a cloud career transition and preparing an interview for a DevOps, SRE or cloud engineer position.
- You are a project manager, product owner or CTO and you want to understand what your infrastructure team really does.
- You already know Ansible and you want to understand where Ansible stops and where Terraform begins.
- You hear about OpenTofu and you want to know if you should migrate.
No heavy technical prerequisites. Basic knowledge of Linux and a public cloud helps, but is not essential for this discovery course.
Course outline at a glance
What you will know at the end
No commands to memorize. At the end of the course, you will know how to:
- Explain in one clear sentence what Terraform is.
- Distinguish provider, resource, data source, module and state without hesitation.
- Answer in an interview "Terraform or Ansible?", "Terraform or Pulumi?", "Terraform or CloudFormation?" with the real arguments.
- Understand why the state file is both the key to everything and Terraform's Achilles heel.
- Know what OpenTofu is, why it exists, and whether you should migrate.
- Approach the Premium Terraform Course with confidence to move to hands-on practice.
⏱️ Estimated duration
About 40 to 50 minutes of reading in total. Each lesson is self-contained — you can read one per day for a week, or go through them all in one evening.
Prerequisites and recommended companions
Prerequisites: none formally. Three discovery courses prepare the ground well:
- Linux Discovery — the OS that runs on the machines created by Terraform.
- Introduction to version control (Git) — Terraform files are versioned in Git.
- Ansible Discovery — the perfect complement to Terraform.
Natural follow-up after this course:
- Premium Terraform Course — practical mastery with multi-cloud exercises
- Kubernetes Discovery — a K8s cluster is often provisioned with Terraform
- CI/CD Discovery — automated Terraform pipelines
- Cloud Discovery — AWS, GCP, Azure, Terraform's raw material
Frequent questions in one answer
What is Terraform in one sentence?
Terraform is an open source Infrastructure as Code tool that, from a text file in HCL format, lets you create, modify and destroy cloud resources (virtual machines, networks, databases, Kubernetes clusters) in a reproducible way, across more than 200 different providers (AWS, GCP, Azure, OVH, Scaleway, etc.).
Terraform or Ansible?
Both, complementary. Terraform creates the infrastructure (virtual machines, networks, databases in the cloud). Ansible configures and deploys what runs inside (packages, services, users, files). Lesson 6 details how the two fit together in the provision-then-configure pattern.
What is Terraform's state file?
A JSON file (named terraform.tfstate) that contains the exact mapping between the resources described in your HCL code and the resources actually provisioned in the cloud. Without the state, Terraform cannot know what to modify at the next apply. Lesson 5 is entirely devoted to this crucial concept.
What is OpenTofu?
An open source fork of Terraform that appeared in 2024, governed by the Linux Foundation, in response to HashiCorp's licence change in August 2023 (from MPL to BSL). OpenTofu remains 100% open source, 99% compatible with Terraform, and is quickly gaining adoption. Lesson 6 details the situation.
Is Terraform free?
Terraform CLI (the command-line binary) is free, but its licence changed in 2023 (non-open BSL). Terraform Cloud (HashiCorp's SaaS offering) has a free tier up to 500 managed resources, then becomes paid. OpenTofu is completely free and open source. Lesson 6 clarifies everything.
How long does it take to learn Terraform?
Understanding the concepts (this course): 45 minutes. Writing your first useful .tf file: a few hours. Structuring a real project with modules, remote state, CI/CD: 30 to 50 hours. Truly mastering it: several months of real projects.
Is this course enough to be operational in a company?
This course gives you the complete conceptual understanding. To be operational (writing clean HCL, structuring modules, managing remote state with S3 + DynamoDB, putting Terraform in a CI/CD pipeline), you need the Premium Terraform Course with its hours of practical content and exercises.
This discovery course explains how it works, without commands.
To type the real commands (terraform init, terraform plan, terraform apply, terraform state, terraform workspace), structure reusable modules and provision multi-cloud, move on to the Premium Terraform Course — included in all our paid plans.
Other discovery courses not to miss
- Ansible Discovery — the ideal complement to Terraform (provision then configure)
- Linux Discovery — the OS that Terraform creates at scale
- Introduction to version control — .tf files are versioned in Git
- Git in practice — team workflow for infrastructure code
- Docker Discovery — modern containers
- Kubernetes Discovery — a K8s cluster is provisioned via Terraform
- Cloud Discovery — Terraform's raw material
Ready? Start with lesson 1 →