Infrastruktūra kaip kodas (IaC) reiškia infrastruktūros (serverių, tinklų, duomenų bazių) apibrėžimą ir valdymą per kodą/konfigūracijos failus, o ne per rankinį konfigūravimą. Tokiu instrumentai kaip CloudFormation, Terraform ir CDK daro infrastruktūrą pasikartojamą, versijų kontrolei prieinamą ir automatizuotą.
Problema, kurią IaC sprendžia
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.
