البنية الأساسية كرمز (Infrastructure as Code - IaC) تعني تعريف وإدارة البنية الأساسية (الخوادم والشبكات وقواعد البيانات) من خلال ملفات الكود/الإعدادات بدلاً من الإعداد اليدوي. تجعل أدوات مثل CloudFormation وTerraform وCDK البنية الأساسية قابلة للتكرار والتحكم بالإصدار والتشغيل الآلي.
المشكلة التي يحلها 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.
