Skip to content
BENIBIX Learn

Infrastructure as Code (IaC)

Development☁️ DevOps & CloudInfrastructure as Code

Also known as IaC, Infrastructure-as-Code

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

Think of it like

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

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.

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.

Common mistake

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

Key takeaways

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