top of page
  • Writer's picturevP

IaC Approaches, Types and Tools

In the previous post we discussed about IaC. In this post, lets discuss more about what are the different IaC Approaches and tools.


When dealing with IaC, There are two major approaches for writing code, which are Imperative approach and Declarative approach. Let us learn about these approaches in more detail and understand the difference between the two.


1. An imperative approach (Procedural)

It defines the specific commands needed to achieve the desired configuration, and those commands then need to be executed in the correct order. Basically, it deals with 'the how,' i.e., how we reached our desired configuration. Lets understand it better with the help of below example.

An Imperative Approach

2. A declarative approach (Functional)

A declarative approach defines the desired state of the system, including what resources you need and any properties they should have, and an IaC tool will configure it for you. It deals with 'the what,' i.e., what is the desired state for the configuration.

A Declarative Approach

Many IaC tools use a declarative approach as it offers a greater degree of flexibility and will automatically provision the desired infrastructure. If you make changes to the desired state, a declarative IaC tool will apply those changes for you. An imperative tool will require you to figure out how those changes should be applied.


How Infrastructure as Code Works?

Infrastructure as Code can be explained from a high level in three simple steps and visualized with the diagram below.


  1. Developers write the infrastructure specification in a domain-specific language.

  2. The resulting files are sent to a master server, a management API, or a code repository.

  3. The platform takes all the necessary steps to create and configure the computer resources.


IaC Tools -

There are many tools that fulfill infrastructure automation capabilities and use IaC. I've listed some of them as below -

Other tools include Pulumi, AWS CloudFormation, cdist, StackStorm, Azure Resource Templates and Juju.


Automation of infrastructure is now a major requirement for every team in an organization. For this automation, many tools and methodologies are available. One tool will not be able to fulfill the requirements of the organization. Therefore, tools should be selected on the basis of the requirements of the organization and various other factors such as cost, skillset, functionality, and so on.


I hope you find this post informative.


Thank you for reading!


*** Explore | Share | Grow ***

34 views0 comments

Comentarios

Obtuvo 0 de 5 estrellas.
Aún no hay calificaciones

Agrega una calificación
bottom of page