Infrastructure as Code (IaC) se integrira s CI/CD-om kako bi se automatizirala ne samo primjena aplikacija već i dodjela resursa i upravljanje infrastrukturom — primjena promjena infrastrukture kroz cjevovode, baš kao i kod. To donosi konzistentnost, automatizaciju i kontrolu verzija infrastrukturi.
IaC u CI/CD cjevovodu
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
