Infrastructure as Code
Now that we know how to package our application, we want to get this running on cloud infrastructure. In a time not so long ago, we had to manually create the infrastructure for our application, mount servers, and configure this. As one of the major characteristics of cloud-based systems is the availability of APIs for almost everything, this is no longer necessary. We can assume that the cloud provider provides enough resources that we can use for our application. In this section, we will take a look at how we can use these APIs to create our Infrastructure as Code (IaC).
First, we need to find out what IaC is and what it does. Normally, IaC is the art of describing infrastructure in a declarative configuration. In general, most tools that use declarative configuration work the same way as Kubernetes operators (we talked about them in the previous section). Therefore, we define our configuration in a declarative format, and the tooling compares this configuration...