Skip to content

What it is

Infrastructure as Code defines servers, networks, and cloud resources in machine-readable files that are versioned, tested, and applied automatically.

Infrastructure as Code (IaC) is the practice of describing computing infrastructure — servers, networks, load balancers, databases, permissions — in files that a machine can read and a tool can apply. Instead of logging into a console and clicking "create instance", you write a file that says "create this instance" and run a tool that reads it. The file is the source of truth. The console becomes a viewer of the result.

The practice has three components: declarative definitions, version control, and automated application. Declarative definitions describe the desired end state, not the sequence of commands to get there. Version control makes every change reviewable, revertible, and attributable. Automated application removes the human hand from the execution path, so the same file produces the same result every time it runs.