Leveraging CI/CD in the Cloud
We have discovered that Infrastructure as Code (IaC) has become an essential practice for modern development, enabling developers to manage infrastructure through code rather than manually configuring it.
However, deploying our infrastructure from a local machine, which we have been doing until now, is no longer sufficient for large-scale systems.
This is where Continuous Integration/Continuous Deployment (CI/CD) comes into play; it automates the deployment process and provides consistent and reliable infrastructure deployment.
This chapter will explore leveraging CI/CD in the cloud to deploy our IaC. We will focus on the popular CI/CD tool, GitHub Actions, which can run workflows triggered by different events, such as pull requests or code commits. We will explore how to use GitHub Actions to run Terraform and Ansible code in both public clouds we covered in Chapter 4, Deploying to Microsoft Azure, and Chapter 5, Deploying to Amazon Web Services...