top of page

Introduction To Terraform

  • Writer: Chandan Rajpurohit
    Chandan Rajpurohit
  • 6 days ago
  • 1 min read

Terraform is an infrastructure as code (IaC) tool that helps us to build, change, and version infrastructure safely and efficiently.


Terraform in simple words helps to provision the infrastructure. It helps automate and manage our infrastructure, our platform, and services that run on our platform.


Terraform is an open-source project by HashiCorp.

Terraform Architecture includes 3 main components.


  • Terraform Core

  • Terraform Config file (*.tf file)

  • Terraform State file (*.tfstate)


Terraform commands


terraform init


Terraform init initializes all modules we mentioned in the main.tf file.


terraform plan


Terraform plan check whether the execution plan for a configuration matches your expectations before provisioning or changing infrastructure.


terraform apply


Terraform apply command actually create the entire infrastructure based on changes terraform state file.


terraform destroy


Terraform destroy delete the entire infrastructure based on changes terraform state file.


Note:- Terraform have the concept of Idempotency which makes sure that how many time we execute/apply terraform the infrastructure will remain same until the state is not changed.


Thank you for reading this article, I really appreciate it. If you have any questions feel free to leave a comment.

Recent Posts

See All
What is Infrastructure as code?

“According to Wikipedia, Infrastructure as Code (IaC) is the process of managing and provisioning computer data centers through machine-readable definition files, rather than physical hardware configu

 
 
 

Comments


Made with ❤️ by Chandan Rajpurohit

© 2025 by CR. 

bottom of page