Skip to content
Captain's Academy0
Terraform words

Terraform dictionary

Every word from the ports, in one plain sentence, with the lesson that explains it.

34 words

A

Argument
A name = value line inside a block that sets one setting.
Explained at port 2.1 · Anatomy of a block →
Attribute
A value a resource exposes, such as its id, that other blocks can read with a reference.
Explained at port 2.3 · References build the order →

B

Block
A unit of HCL: a type, optional labels, and a body in braces, like resource "local_file" "note" { ... }.
Explained at port 2.1 · Anatomy of a block →

C

Configuration
Your .tf files: the blueprint of the infrastructure you want.
Explained at port 0.2 · The three truths →
Core workflow
Write, plan, apply: change the code, preview the change, then make it real.
Explained at port 3.1 · Write, plan, apply →

D

Declarative
You describe the end result you want and the tool works out the steps. Terraform is declarative.
Explained at port 1.1 · Declarative vs imperative →
Dependency lock file
.terraform.lock.hcl: records the exact provider versions and checksums init chose. Commit it; init -upgrade changes it.
Explained at port 4.3 · The dependency lock file →
Drift
When the real infrastructure was changed outside Terraform, so it no longer matches the state.
Explained at port 0.2 · The three truths →

H

HCL
HashiCorp Configuration Language: the block-and-argument language Terraform files are written in.
Explained at port 2.1 · Anatomy of a block →
HCP Terraform
HashiCorp's hosted service for running Terraform as a team: remote state, runs, policies and workspaces (formerly Terraform Cloud).
Explained at port 1.5 · Editions and versions →

I

Immutable infrastructure
Servers are replaced with new ones instead of being changed in place, so every copy matches its blueprint.
Explained at port 1.2 · Mutable vs immutable infrastructure →
Imperative
You write the steps yourself, in order, like a script of commands.
Explained at port 1.1 · Declarative vs imperative →
Implicit dependency
When one block references another, Terraform builds the referenced one first. No depends_on needed.
Explained at port 2.3 · References build the order →
Infrastructure as Code
Describing servers, networks and other infrastructure in files, so it can be built again, reviewed and versioned instead of clicked together.
Explained at port 0.1 · Why Infrastructure as Code →

P

Provider
A plugin that teaches Terraform one API (AWS, Azure, local files…) and supplies its resource and data source types.
Explained at port 4.1 · How providers work →
Provider alias
A second configuration of the same provider (for example another region), picked in a resource with provider = aws.west.
Explained at port 4.5 · Multiple providers and alias →
Provisioning
Creating the infrastructure itself (networks, machines, databases). Terraform's job, as opposed to configuring what runs inside it.
Explained at port 1.3 · Terraform vs Ansible, CloudFormation, Pulumi →

R

required_providers
The list inside the terraform block that names each provider's source and version constraint.
Explained at port 4.6 · The terraform block →
Resource
A block that tells Terraform to create and manage one piece of infrastructure.
Explained at port 2.2 · Your first resource →
Resource graph
The dependency graph Terraform builds from references; it decides the order and runs independent resources in parallel.
Explained at port 3.5 · The resource graph →

S

Saved plan
A plan written to a file with plan -out; terraform apply of that file runs exactly those changes.
Explained at port 3.4 · Reading a plan →
State
Terraform's ledger (terraform.tfstate): what it built, mapped to the real objects, so it can compare them with your code.
Explained at port 0.2 · The three truths →

T

Terraform
HashiCorp's infrastructure-as-code tool: you write the desired setup in HCL and it works out and runs the API calls to get there.
Explained at port 0.1 · Why Infrastructure as Code →
terraform apply
Makes the planned changes real and updates the state. -replace forces one resource to be recreated.
Explained at port 3.6 · terraform apply →
Terraform Associate
HashiCorp's Terraform Associate (004) certification: a one-hour multiple-choice exam that tests Terraform 1.12.
Explained at port 0.4 · The exam and how to use this course →
terraform block
Settings for Terraform itself: required_version, required_providers and the backend.
Explained at port 4.6 · The terraform block →
terraform destroy
Removes every resource the configuration manages. Same as apply -destroy.
Explained at port 3.7 · terraform destroy →
terraform fmt
Rewrites .tf files in the canonical style (indentation, aligned equals signs). -check only reports.
Explained at port 2.5 · terraform fmt and style →
terraform init
Prepares a working directory: downloads providers and modules and sets up the backend. Run it first, and again after adding a provider.
Explained at port 3.2 · terraform init →
terraform plan
Compares code, state and reality and shows what would change: + create, ~ update, - destroy, -/+ replace.
Explained at port 3.4 · Reading a plan →
Terraform Registry
registry.terraform.io: the public catalogue of providers and modules that init downloads from.
Explained at port 4.1 · How providers work →
terraform validate
Checks the configuration for syntax errors and wrong references, without contacting any provider API.
Explained at port 3.3 · terraform validate →
The .terraform folder
Where init puts downloaded providers and modules. Not committed to Git.
Explained at port 3.2 · terraform init →

V

Version constraint
A rule for which versions are allowed, like ~> 5.0 (5.x but not 6.0) or >= 1.12.
Explained at port 4.2 · Pinning provider versions →