Infrastructure as Code
Question
What is Infrastructure as Code?
Hint
IaC makes infrastructure reproducible and version-controlled.
Explanation
Infrastructure as Code (IaC) manages infrastructure through declarative configuration files instead of manual setup. Tools: Terraform (cloud resources), Ansible (configuration), Pulumi (IaC in real languages), CloudFormation (AWS). Benefits: 1) Version control — track changes, rollback. 2) Reproducible — identical environments. 3) Review — peer review infrastructure changes. 4) Automation — no manual errors. 5) Documentation — code documents the setup. Declarative (Terraform) describes desired state. Imperative (Ansible) describes steps. IaC enables DevOps by treating infrastructure like application code.
Related Resources
Related Lessons
- IaC
Learn IaC.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.