What is Terraform
Infrastructure as Code tool by HashiCorp
Terraform is an Infrastructure as Code (IaC) tool by HashiCorp that allows you to define cloud resources in a declarative format.
Key Concepts
- Providers — plugins for AWS, GCP, Azure, and more
- Resources — infrastructure objects (VMs, networks, databases)
- Modules — reusable configuration blocks
- State — infrastructure state file
Main Commands
terraform init— initialize projectterraform plan— preview changesterraform apply— apply configurationterraform destroy— destroy infrastructure
Benefits
- Infrastructure versioning via Git
- Reproducibility and environment consistency
- Multi-cloud provider support
- Automation and CI/CD integration