Infrastructure as Code (IaC) ผสานเข้ากับ CI/CD เพื่อทำ automation ไม่เพียงแค่การ deploy แอปพลิเคชัน แต่รวมถึง การจัดเตรียม (provisioning) และการจัดการ infrastructure ด้วย — โดยนำการเปลี่ยนแปลง infrastructure ผ่าน pipeline เหมือนกับโค้ด ซึ่งทำให้ infrastructure มีความสม่ำเสมอ เป็น automation และมี version control
IaC ใน 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
