Infrastructure as Code (IaC) भनेको आफ्नो infrastructure (servers, networks, databases) लाई म्यानुअल सेटअप को सट्टा code/configuration files मार्फत परिभाषित गरी व्यवस्थाप्न गर्नु हो। CloudFormation, Terraform, र CDK जस्ता उपकरणहरूले infrastructure लाई दोहोरिने योग्य, version-controlled, र automated बनाउँछन्।
IaC ले समाधान गरे को समस्या
MANUALLY setting up infrastructure (clicking in the Console) is:
→ not REPEATABLE (hard to recreate identically; error-prone)
→ not VERSIONED (no history of what changed, by whom, why)
→ not DOCUMENTED (the setup lives only in someone's memory/clicks)
→ hard to review, share, or roll back
→ IaC defines infrastructure in CODE → solving all of this.
