DEV Community

Cover image for Description of Infrastructure as a Code
Nandan K
Nandan K

Posted on

Description of Infrastructure as a Code

Today I started Zero to master AWS-terraform challenge. I'm here to share my today's learning of terraform.

Firstly, I came across literal meaning of Infrastructure as a code (IaC), then why ITs are suffering from traditional methods of infrastructure creation and along side how IaC overcome the shortcoming of traditional methods of infrastructure creation.

Secondly, I go through different Infrastructure automation tools like Terraform (Popular), Pulumi and cloud native tools like AWS CloudFormation, Azure ARM, GCP Deployment Manager.

Deep dive into most popular and universal tool - Terraform

  1. It automates a. provisioning of resource creation b. Maintenance - look into security patches and update leads to more secure.
  2. Write once, Deploy many
  3. Consistent environment

Apart from this, I also come across Terraform Architecture, Installation and workflow

Basic Terraform workflow looks like:

  1. terraform init - set up the working directory
  2. terraform validate - validate the configuration file
  3. terraform plan - create an execution plan
  4. terraform apply - apply the changes to reach the desired state
  5. terraform destroy - destroy the infrastructure when needed

Overall my sincere thanks to Piyush, who is an instructor of Devops and Cloud. Recently i found in YouTube and its a grate learning process.

https://youtu.be/s5fwSG_00P8?si=cSB4NvjDSAFWAfyG

Top comments (0)