Infrastructure as Code (IaC) oznacza definiowanie i zarządzanie infrastrukturą (serwery, sieci, bazy danych) za pomocą kodu/plików konfiguracyjnych zamiast ręcznej konfiguracji. Narzędzia takie jak CloudFormation, Terraform i CDK sprawiają, że infrastruktura staje się powtarzalna, kontrolowana wersją i zautomatyzowana.
Dlaczego to ważne
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.
