Context
In the age of cloud computing, provisioning infrastructure became easier through cloud providers. At the same time, there was a need to improve the developer experience to avoid the so called “click-ops” and make the infrastructure definition replicable, versioned, and automated.
As the name suggests, IaC addresses this need through defining the infrastructure as code itself, which can be managed just like any other project and frequently alongside the application code itself.
Idempotence
In computing, idempotence is a property of an operation that produces the same result regardless of how many times it is executed. It’s a very important concept for understanding IaC.
Approaches
Imperative
Still need to learn this.
Declarative
Terraform is the declarative IaC tool I’m the most familiar with.