Terraform Glossary

Plain definitions of the Terraform terms, functions, and meta-arguments you meet in real configurations.

Terraform contains

Terraform contains checks whether a list, tuple, or set holds a value. This guide covers syntax, examples, and how it differs from strcontains and lookup.

Read more

Terraform count

The Terraform count meta-argument creates multiple resource instances from one block. Learn its syntax, count.index, and its index-shift pitfall.

Read more

Terraform dynamic block

A Terraform dynamic block generates repeated nested blocks from a list or map. See the syntax, a worked example, and common mistakes to avoid.

Read more

Terraform for loop

Learn how a Terraform for loop transforms values, filters elements with an if clause, and prepares maps and lists for real Terraform code.

Read more

Terraform for_each

Terraform for_each turns a map or set into distinct resource instances. See syntax, real examples, common mistakes, and when to use count instead.

Read more

terraform init

Terraform init sets up your working directory: providers, modules, the backend, and the lock file. Here's exactly what it does and when to rerun it.

Read more

Terraform lifecycle ignore_changes

Terraform lifecycle ignore_changes explained: what it does, how to write it, real examples, and when it's a band-aid rather than a fix.

Read more

Terraform map variables

A Terraform map variable pairs string keys with one shared value type. See how to declare, populate, and access one, with real HCL examples.

Read more

Terraform path

Terraform path values (path.module, path.root, path.cwd): what each one returns, a worked example, and the mistake that causes silent overwrites.

Read more

Terraform try

Terraform try catches dynamic errors and returns a fallback value. This guide covers its syntax, examples, common mistakes, and its closest alternatives.

Read more

RIP .tfstate. Meet Stategraph.

Resource-level locking. Graph-based state. SQL queries on your infra.
Teams work in parallel. No more lock contention.

Start Free Subscribe

// Engineering updates only. Unsubscribe anytime.