# Infrastructure as Code (IaC)

> Write your servers down in text files, and a tool builds them for you.

**Field:** Software Development  
**Category:** DevOps & Cloud  
**Also known as:** IaC, Infrastructure-as-Code

## Think of it like

Think of it like a recipe for a kitchen. Follow it and you get the same kitchen each time.

## Definition

Infrastructure as code means writing your servers down in text files. The files also cover networks and databases. A tool reads them and makes or changes the real things to match. The files live in Git, so every change is checked and recorded. You can build a whole new copy of your setup with one command. Terraform and Pulumi are well-known tools for it.

## Example

Lucy needs a second copy of her setup for testing. She runs her IaC files with a new name, and 15 minutes later it exists, exactly like the first.

## Why it matters

Setups made by clicking are hard to repeat and easy to forget. Files can be reviewed, copied and rolled back.

## Common mistake

Fixing things by hand in the console after using IaC. The files and the real setup then disagree.

## Three principles

- **Setup as text.** Not clicks in a console.
- **Kept in Git.** Reviewed and recorded.
- **Repeatable.** Same files, same setup.

## Related terms

- [Terraform](https://learn.benibix.com/term/development/terraform)
- [Configuration Drift](https://learn.benibix.com/term/development/configuration-drift)
- [Version Control](https://learn.benibix.com/term/development/version-control)
- [DevOps](https://learn.benibix.com/term/development/devops)
- [Configuration Management](https://learn.benibix.com/term/development/configuration-management)
- [Ansible](https://learn.benibix.com/term/development/ansible)
- [GitOps](https://learn.benibix.com/term/development/gitops)

---

Source: https://learn.benibix.com/term/development/infrastructure-as-code
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.
