Back to list
Lv.2

IaC (Infrastructure as Code)

Infrastructure as Code

A technique that automates infrastructure setup by writing configuration as text — just like writing code.

In Simple Terms

IaC is a system where you write server configurations as code, and simply loading that code automatically builds the entire environment for you. For example, if you need to apply the same settings to 100 servers, instead of clicking through each one manually, you just feed in a single configuration file and everything is done at once. With this approach, anyone can reproduce exactly the same environment with complete accuracy, and reviewing settings later becomes much easier too.

Behind the Name

IaC stands for Infrastructure as Code. Infrastructure refers to the underlying systems and equipment that keep everything running, while Code refers to text written in a programming format. The name comes from the practice of capturing the configuration of servers and other equipment — once managed separately — in text files that work like recipes.

Take a Closer Look!

IaC (Infrastructure as Code) is an approach to managing and building IT infrastructure — such as servers and networks — by describing it in text files, just like writing programming code.
In the past, engineers would configure systems manually by clicking buttons in a management console or entering commands one at a time.
With IaC, you simply write down "what kind of setup you want" in a text file, and a dedicated tool reads that file and automatically handles all the configuration.

Simply put, IaC turns an infrastructure runbook into a self-executing button — the instructions themselves become the automation.
Managing everything as code makes it easy to roll back to a previous state or trace the full history of changes — a significant advantage of the approach.
And because the same code can reproduce an identical environment anywhere in the world, it also prevents mistakes when setting up multiple environments, such as development and production.
In today's world where cloud services are widely used, this approach has become standard practice — allowing teams to change configurations without ever physically touching a machine.