Infrastructure / Practice
Infrastructure as Code
The practice of defining infrastructure in versioned, declarative or procedural code instead of configuring it manually.
Problem it solves
Why it exists.
It solves environment drift and makes infrastructure changes reviewable, repeatable, and recoverable.
Optimized for
Where it shines.
Cloud and platform environments that need reproducible environments, peer review, and automated provisioning.
Use with care
Where not to use it.
Do not automate unclear architecture or treat stateful production changes as disposable without a migration and recovery plan.
Components
What it is made of.
- Configuration files
- State
- Providers or APIs
- Plan and apply workflow
- Modules
Process
How it works.
- Code describes the desired infrastructure
- A plan previews the difference
- Changes are reviewed and approved
- Automation applies and records the new state