Infrastructure as Code (IaC) se integruje s CI/CD za účelem automatizace nejen nasazení aplikace, ale také zřizování a správy infrastruktury — aplikace změn infrastruktury prostřednictvím pipeline, stejně jako kódu. To přináší konzistenci, automatizaci a správu verzí do infrastruktury.
IaC v CI/CD pipeline
Infrastructure (servers, networks, databases) defined as CODE (Terraform, CloudFormation,
etc.) and managed THROUGH CI/CD pipelines:
→ infrastructure changes go through the SAME workflow as app code (PR → review → apply)
→ the pipeline runs the IaC tool to provision/update infrastructure automatically
→ infrastructure is version-controlled, reviewed, and applied consistently
