# Terraform

> A tool that builds cloud setups from text files. The files say what should exist.

**Field:** Software Development  
**Category:** DevOps & Cloud  
**Also known as:** HashiCorp Terraform, terraform plan, terraform apply, HCL

## Think of it like

Think of it like a builder with a plan drawing. You change the drawing, and the builder changes the house to match.

## Definition

Terraform is a tool that builds cloud setups from text files written in HCL. You describe what should exist, like a server or a database. terraform plan shows what it will add, change or delete. terraform apply then makes it so. It works with all the big cloud providers and hundreds of other services.

## Example

Jack adds one server to his Terraform file. The plan says one thing will be added. Two minutes after apply, the server is there.

## Example code

```console
$ terraform plan
...
Plan: 1 to add, 0 to change, 0 to destroy.
```

Terraform tells you what it will do before it does it.

## Why it matters

The plan shows each change first. A typo cannot quietly wipe a database.

## Common mistake

Running apply without reading the plan. One wrong line can destroy and rebuild a server you meant to keep.

## Three principles

- **Describe the goal.** Not the steps.
- **Plan, then apply.** See it before it happens.
- **Many clouds.** One tool for all.

## Related terms

- [Infrastructure as Code (IaC)](https://learn.benibix.com/term/development/infrastructure-as-code)
- [Configuration Drift](https://learn.benibix.com/term/development/configuration-drift)
- [DevOps](https://learn.benibix.com/term/development/devops)
- [Configuration File](https://learn.benibix.com/term/development/config-file)
- [Ansible](https://learn.benibix.com/term/development/ansible)

## Told apart from

- [Terraform vs Ansible](https://learn.benibix.com/compare/terraform-vs-ansible): Terraform makes the cloud parts, like servers and networks. Ansible sets up what runs on a server, like its programs and files. Many teams use Terraform to make the servers. Then they use Ansible to set them up.

---

Source: https://learn.benibix.com/term/development/terraform
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
