Terraform Fundamentals
Infrastructure as Code, explained from the ground up. Learn how Terraform turns declarative HCL into real cloud infrastructure — providers, the plan/apply workflow, state and configuration — and remember it with spaced repetition.
- flashcards
- 76
- flashcards
- per day
- ~10 min
- per day
- level
- Beginner → Intermediate
- level
- modules
- 4
- modules
What is Terraform?
Terraform is an open-source Infrastructure as Code (IaC) tool from HashiCorp. Instead of clicking through cloud consoles or writing one-off scripts, you describe the infrastructure you want — networks, servers, databases, DNS — in declarative HCL, and Terraform works out how to create, change or destroy resources to match that description.
The heart of Terraform is the plan / apply workflow: plan shows you exactly what will change before anything happens, and apply makes it so, recording the result in state. That state file is how Terraform maps your configuration to real-world resources and detects drift when reality and code diverge.
This track breaks Terraform into bite-sized, practical questions — IaC concepts, providers and the Registry, the core CLI workflow, and writing HCL — and uses spaced repetition so the commands and concepts stick, whether you are shipping infrastructure or prepping for the Terraform Associate exam.
4 modules, seed to bloom
Each module is a set of flashcards — 76 in total. Answer, review, and watch your knowledge grow from seed to full bloom.
Infrastructure as Code (IaC)
IaC concepts — declarative provisioning, idempotency, drift, state, and reproducibility
16 cardsTerraform Fundamentals
Terraform basics — purpose, providers, the Registry, resources, data sources, and the dependency graph
19 cardsCore Terraform Workflow
The core CLI workflow — init, plan, apply, destroy, validate, fmt, plan symbols, and saved plans
20 cardsTerraform Configuration
Writing config in HCL — variables, outputs, locals, expressions, functions, and count/for_each
21 cardsSample questions
A taste of the real flashcards. Pick an answer, then reveal the explanation.
What makes declarative IaC different from a provisioning script?
- AYou describe the end state and the tool works out the steps
- BIt runs faster, because the tool parallelises all the steps
- CIt needs no credentials, since the tool holds them for you
- DIt can only create resources, never modify or destroy them
What is Terraform?
- AAn infrastructure as code tool that provisions and manages resources through declarative configuration
- BA configuration management tool that installs and updates software on existing running servers
- CA container orchestration platform that schedules and scales workloads across a cluster of nodes
- DA continuous integration service that builds, tests, and deploys application code on each commit
What are the main steps of the core Terraform workflow?
- AWrite, then init, then plan, then apply — the standard cycle for managing infrastructure
- BBuild, then test, then release, then deploy — the standard cycle for shipping application code
- CClone, then compile, then package, then publish — the standard cycle for distributing binaries
- DPlan, then init, then validate, then destroy — the standard cycle for managing infrastructure
What is the purpose of an input variable in Terraform?
- ATo parameterize a configuration so the same code can be reused with different values
- BTo expose a configuration's results so other tools and modules can consume them
- CTo name a computed expression so it can be reused throughout the configuration
- DTo store the configuration's current state so Terraform can track real resources
Learn it once, keep it for good
Answer a question
Each card is one practical concept with multiple options. Pick what you think is right.
Get the full answer
See the correct option plus a clear explanation, and a link to deeper docs when one is available.
Review at the right time
A spaced-repetition engine (SM-2 or FSRS) resurfaces each card just before you would forget it.
Why Terraform is worth your time
The standard for cloud infrastructure
Terraform is the de-facto IaC tool across AWS, Azure, GCP and beyond. One workflow, almost any provider.
Ship changes with confidence
terraform plan shows every change before it happens, so you stop guessing and start reviewing.
Reproducible, not snowflake
Codified infrastructure can be versioned, reviewed and recreated — no more one-off manual setups.
Certification-ready
The fundamentals here map directly to the HashiCorp Terraform Associate exam objectives.
Common questions
Do I need cloud experience first? +
No. The track starts from IaC first principles and the core workflow, so you can follow along even if you have only clicked around a cloud console before.
How long does it take? +
About 10 minutes a day. Spaced repetition means short, frequent sessions beat long cramming — most learners get comfortable with the fundamentals within a couple of weeks.
Is it free? +
Yes, completely free. No registration or credit card is required, and all your progress is stored locally in your browser.
Will this prepare me for the Terraform Associate exam? +
It covers the conceptual core the Terraform Associate (004) exam tests — IaC, the workflow, state and HCL — and pairs best with hands-on practice in a real project.
Ready to master Terraform?
Plant your first seed today. Ten minutes a day is all it takes to grow real, lasting infrastructure skills.
