What is Infrastructure as Code?
Describing servers, networks and cloud services in versioned code files instead of configuring them by hand, so infrastructure is created and recreated reproducibly.
Infrastructure as Code means describing infrastructure in versioned code files, instead of configuring it by clicking through a cloud console or running commands by hand on a server. Tools like Terraform, OpenTofu or a cloud's native options read those files and create, modify or destroy resources accordingly: networks, virtual machines, managed databases, permissions. The file becomes the authoritative description of what the environment should be, not a reminder of what someone once did. Configuring by hand works as long as it only needs doing once: the problem arrives at the second environment, at rebuilding after an incident, or when the person who remembered the exact steps leaves the company, and without code the real infrastructure silently drifts from whatever anyone has in their head. With IaC, every change goes through a reviewable pull request like any other software change, and recreating an identical environment, for disaster recovery or a new test environment, becomes running the same code instead of repeating a procedure from memory.
See also: CI/CDContinuous Integration and Continuous Delivery: every software change is tested and shipped to production automatically and frequently.
Why it replaces "click and pray"
Configuring by hand works as long as it only needs doing once. The problem arrives at the second environment, at rebuilding after an incident, or when the person who remembered the exact steps leaves the company: without code, the real infrastructure silently drifts from whatever anyone has in their head. With IaC, every change goes through a reviewable pull request like any other software change, and recreating an identical environment, for disaster recovery or a new test environment, becomes running the same code instead of repeating a procedure from memory.
Why it is the prerequisite for DataOps
For a data platform, IaC is not an infrastructure-team detail: it is what makes it possible to treat different environments, development, test, production, as consistent instances of the same code instead of divergent configurations built by hand over time. It is the layer DataOps rests on: without reproducible environments, automating pipelines and tests stays a partial exercise, because there is always that one hand-configured environment nobody dares touch.
Related terms
- CI/CDContinuous Integration and Continuous Delivery: every software change is tested and shipped to production automatically and frequently.
- DataOpsDevOps discipline applied to data pipelines: versioning, testing, CI/CD and monitoring on data flows.
- Platform engineeringPlatform engineering designs shared, reusable, self-service internal capabilities as a product, helping internal teams build and operate their own software.
- GitOpsGitOps manages software systems by comparing their live state with versioned, declared configuration that automated agents retrieve and attempt to apply.
- Pets vs cattleThe analogy that separates unique servers nursed back to health by hand (pets) from identical servers built by automation and replaced when they fail (cattle).