Infrastructure · 4 modules

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.

practice cards
75
practice cards
per day
~10 min
per day
level
Beginner → Intermediate
level
modules
4
modules
About this topic

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.

What you'll learn

4 modules, seed to bloom

Each module is a set of practice cards — 75 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 cards

Terraform Fundamentals

Terraform basics — purpose, providers, the Registry, resources, data sources, and the dependency graph

19 cards

Core Terraform Workflow

The core CLI workflow — init, plan, apply, destroy, validate, fmt, plan symbols, and saved plans

20 cards

Terraform Configuration

Writing config in HCL — variables, outputs, locals, expressions, functions, and count/for_each

20 cards
Try before you plant

Sample questions

A taste of the real cards. Pick an answer, then reveal the explanation.

Sample · Terraform Fundamentals

What is Infrastructure as Code (IaC)?

  • AProvisioning and managing infrastructure through code instead of manual console configuration
  • BWriting application code that automatically scales infrastructure based on real-time traffic demand
  • CDocumenting the infrastructure setup in a wiki so the team can manually reproduce it later
  • DRunning shell scripts on each server by hand to install and update the required software
Sample · Terraform Fundamentals

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
Sample · Terraform Fundamentals

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
Sample · Terraform Fundamentals

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
How Gnoseed works

Learn it once, keep it for good

1

Answer a question

Each card is one practical concept with multiple options. Pick what you think is right.

2

Get the full answer

See the correct option plus a clear explanation, and a link to deeper docs when one is available.

3

Review at the right time

A spaced-repetition engine (SM-2 or FSRS) resurfaces each card just before you would forget it.

Why learn this

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.

FAQ

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 (003) 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.

Start learning free