Infrastructure as Code (IaC) bermaksud menentukan dan menguruskan infrastruktur anda (pelayan, rangkaian, pangkalan data) melalui fail kod/konfigurasi dan bukannya persediaan manual. Alat seperti CloudFormation, Terraform, dan CDK menjadikan infrastruktur boleh diulang, dikawal versi, dan automatik.
Masalah yang IaC selesaikan
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.
