Overview
Terraform is an Infrastructure as Code tool that describes resources using declarative configuration. It supports multiple providers and enables version control and automation of environments.
Installation
macOS
| |
If Homebrew reports an outdated Command Line Tools version, update with:
| |
Linux
Download the binary from HashiCorp and place it in PATH.
Basic Usage
- Write configuration files (
.tf). - Run
terraform initto download provider plugins. - Preview with
terraform plan. - Apply changes using
terraform apply.
Conclusion
Terraform brings reproducibility to infrastructure provisioning across cloud and on-premises environments.
