Summary
In this chapter, we implemented a sample pipeline for IaC. In the first section, we learned how to integrate Packer command lines in pipelines. Then, in the second part, we continued the automation of IaC with another pipeline that ran Terraform to provision an Azure VM, and installed nginx on this VM with Ansible.
All the YAML pipeline code used in this chapter was applicable to GitHub and Azure Pipelines, and the process is exactly the same for other CI/CD tools such as Jenkins or GitLab CI.
In the next chapter, we will learn how to build and run a container using Docker.