Terraform
Terraform describes infrastructure in HCL files and a plan/apply workflow creates, updates and destroys the real resources on AWS, Azure, Google Cloud, Kubernetes and many other providers. Its open source fork is OpenTofu.
Key concepts #
- Provider: the plugin that talks to an API. See Terraform provider.
- State: the record of the resources it manages. See Terraform state.
- Module: a reusable group of resources. See Terraform module.
- Workspace and backend: separate states and where they are stored. See workspaces and backends.
Learn it #
Follow the Terraform and OpenTofu tutorials and the best practices.
More tutorials that use Terraform
- Terraform Cloud Agents in a Kubernetes Cluster
- AWS with Terraform Tutorial: Terraform Basics (1)
- AWS VPC, Route 53, RDS MariaDB, EC2 using Ansible and Terraform (1/5)
- AWS with Terraform Tutorial: Terraform AWS Provider (3)
- AWS with Terraform Tutorial: AWS EC2 Instances (12)
- Terraform AWS EKS Cluster Deployment & Application Publishing through ALB
- AWS with Terraform Tutorial: AWS NAT Gateway (7)
- AWS with Terraform Tutorial: AWS RDS Instances (13)