Infrastructure as Code (IaC) का अर्थ है अपने infrastructure (servers, networks, databases) को manual setup के बजाय code/configuration files के माध्यम से परिभाषित और प्रबंधित करना। CloudFormation, Terraform, और CDK जैसे tools infrastructure को repeatable, 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.
