Skip to main content

🏗️ 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

#LessonMain objectiveDuration
1The problem Terraform solvesUnderstand why manual cloud infrastructure management collapses6 min
2What is Terraform?Rigorous definition, HashiCorp history, BSL licence, OpenTofu7 min
3HCL, plan, applyTerraform's declarative cycle with a real HCL example7 min
4Providers, resources, modulesThe trinity that makes up all Terraform code7 min
5The state fileThe file that makes Terraform smart: backend, locking, drift7 min
6Ecosystem and alternativesTerraform Cloud, OpenTofu, Pulumi, CloudFormation, Terragrunt6 min
7Real use cases + FAQWhere Terraform is really used + 14 frequent questions5 min
8Quiz and attestationValidate what you learned with 5 corrected questions3 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: none formally. Three discovery courses prepare the ground well:

Natural follow-up after this course:


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.


Want to move to hands-on practice?

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


Ready? Start with lesson 1 →