Infrastructure as Code (IaC) si integra con CI/CD per automatizzare non solo il deployment dell'applicazione ma anche il provisioning e la gestione dell'infrastruttura — applicando i cambiamenti infrastrutturali attraverso le pipeline, proprio come il codice. Questo porta coerenza, automazione e version control all'infrastruttura.
IaC nella pipeline CI/CD
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
