Infrastructure as Code (IaC) significa definire e gestire la tua infrastruttura (server, reti, database) attraverso codice/file di configurazione piuttosto che attraverso setup manuale. Tool come CloudFormation, Terraform e CDK rendono l'infrastruttura ripetibile, versionata e automatizzata.
Perché è importante
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.
