Infrastructure as Code (IaC) کا مطلب ہے کہ آپ اپنی infrastructure (سرورز، نیٹ ورکس، ڈیٹا بیسز) کو کوڈ/کنفیگریشن فائلوں کے ذریعے define اور manage کریں بجائے manual setup کے۔ CloudFormation، Terraform، اور CDK جیسے tools infrastructure کو repeatable، version-controlled، اور automated بناتے ہیں۔
The problem IaC solves
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.
