Infrastructure as Code (IaC) znači definiranje i upravljanje svojom infrastrukturom (serveri, mreže, baze podataka) kroz kod/datoteke konfiguracije umjesto ručne postavke. Alati poput CloudFormation, Terraform i CDK čine infrastrukturu ponovljivom, verzioniranom i automatiziranom.
Problem koji IaC rješava
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.
