Infrastructure as Code (IaC) integreras med CI/CD för att automatisera inte bara applikationsdistribution utan också etablering och hantering av infrastruktur — applicera infrastrukturförändringar genom pipelines, precis som kod. Detta ger konsistens, automation och versionskontroll till infrastruktur.
IaC i CI/CD-pipelinen
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
