Skill · Provisioning · Provision as code with Terraform
Design, structure and test a reusable Terraform module
Write a reusable module with the standard structure, design its interface of variables and outputs, and test it with terraform test.
Start lesson 1The Provisioning domain
- 6 lessons
- ~7 h 55 of reading
- 1 quiz
- 1 proof lab
Lessons
How to learn it
6 lessons, about ~7 h 55, in program order. Each lesson ends with its quiz.
The program
6 lessons · ~7 h 55
- 1Créer un module (in French)· 75 min
- 2Structure d'un module (in French)· 75 min
- 3Variables et outputs (in French)· 75 min
- 4Tester un module (in French)· 80 min
- 5Bonnes pratiques (in French)· 80 min
- 6Anti-patterns (in French)· 90 min
Beyond the lessons
Assess, practise, pass the proof
Reading a lesson confirms nothing. A skill is confirmed by a passed quiz, practised in a guided lab, and put to the test by a challenge or a mission; an imported lab result is not verified by the site.
Assess yourself
1 quiz
At the end of the lessons: passed at 70%, it confirms the skill.
Practice
6 guided labs
- A reusable module configures no provider of its own
- Refactor a copy-pasted project without destroying anything
- Make a module composable, and prove it from the plan JSON
- Refactor a monolith into the standard module structure
- A module interface is a contract, not just types
- Prove a module with terraform test, mutations included
Proof
1 practical proof
A practical proof is a challenge, a capstone or a declared lab.
Used by the mission “Describe infrastructure as shareable, replayable code”, which has its proof.
Apply it on real infrastructure
Hands-on lessons: their labs count as practice and their quizzes assess you, without being required to acquire it.
Placement test
Preparing the questions…
Your answers in detail
For each question asked: your answer, the correct answer, its explanation and the page to reread.
Around it
Who requires it, who teaches it
Required by
Taught by
Same block · Provision as code with Terraform
- Initialise, run and troubleshoot a Terraform project, from init to destroy
- Declare Terraform resources and data sources with pinned providers
- Parameterize a Terraform project and expose its results without duplicating values
- Generate Terraform resources in a controlled way with expressions, functions, count and for_each
- Control the ordering, replacement and guardrails of Terraform resources
- Handle sensitive data in Terraform without exposing it in outputs or state
- Share a remote, locked and recoverable Terraform state
- Inspect and repair a Terraform state, move or remove resources without recreating them
- Organize several environments and a Terraform repository without dangerous coupling
- Run Terraform non-interactively in a pipeline, with guardrails
- Consume and version Terraform modules reproducibly