Module · DevOps Engineer
Terraform
Infrastructure as code: write it, plan it, apply it, destroy it.
Tool Deep-Dive Available
View full architecture diagrams, CLI cheatsheets, and production gotchas.
Open Terraform Hub ↗TOPIC 01
Init & Plan
HCL, providers and the plan that predicts every change.
What you'll practice
- Write Your First Configuration — guided · beginner
A command you'll meet
mkdir ~/infraOpen any task below to get the full step-by-step walkthrough — every command is explained, and the lab validator checks what you actually built.
Hands-On Tasks in This Topic (1)
TOPIC 02
Apply & State
Turning plans into real resources — and tracking them in state.
What you'll practice
- Apply the Configuration — practice · beginner
A command you'll meet
cd ~/infraOpen any task below to get the full step-by-step walkthrough — every command is explained, and the lab validator checks what you actually built.
TOPIC 03
Destroy
Infrastructure as code cuts both ways.
What you'll practice
- Destroy It All — practice · beginner
A command you'll meet
cd ~/infraOpen any task below to get the full step-by-step walkthrough — every command is explained, and the lab validator checks what you actually built.
TOPIC 04
Modules
Package resources once and reuse them in every environment.
What you'll practice
- Wire Up a Bucket Module — practice · intermediate
A command you'll meet
mkdir ~/tf-modules/modules/s3Open any task below to get the full step-by-step walkthrough — every command is explained, and the lab validator checks what you actually built.
TOPIC 05
State, Backends & Guardrails
Where the state lives, and what happens to your infrastructure when you press the wrong button.
What you'll practice
- Configure a Remote Backend — practice · intermediate
- Guard a Bucket with a Lifecycle Rule — challenge · advanced
A command you'll meet
terraform initThe state file is the memory of your infrastructure. Open the task below for the full walkthrough.
Hands-On Tasks in This Topic (2)
Configure a Remote Backend
Local state belongs to one laptop and disappears with it. Move it to an S3 bucket with locking so a whole team can share one source of truth.
Guard a Bucket with a Lifecycle Rule
Some infrastructure must never be destroyed by a stray command. Declare a bucket with a prevent_destroy lifecycle rule and apply it.