What is Terraform?
Terraform is an infrastructure-as-code tool from HashiCorp. You describe servers, networks and cloud services in configuration files, and Terraform creates or changes the real infrastructure to match.
Talk to an engineer Knowledge base
What it is
Without a tool like this, infrastructure is built by clicking through web consoles, and later nobody can say exactly what was set. With Terraform, an engineer writes files that list what should exist: two virtual machines of a given size, a private network, a firewall rule, a storage bucket. Terraform works with AWS, Microsoft Azure, Google Cloud, DNS services and many others, and community plugins add Proxmox VE.
Before changing anything, Terraform shows a plan: what it would create, change or delete. Someone reads it, approves it, and only then does Terraform act. It also keeps a record, called the state file, of which real resources it manages. That file can hold passwords, so it belongs in protected shared storage, not on one laptop.
What a business gets from it
- A written record: the files, kept in Git, show what exists and why each change was made.
- No surprises on change day: the plan shows what will be deleted before it happens.
- Copies on demand: a test setup or a second site can be built from the same files as production.
It pays off when there is enough infrastructure, or enough change, that clicking through consoles becomes risky. A business with one server and a Microsoft 365 tenant usually does not need it.
Related tools
Terraform builds the machines, networks and cloud services. Ansible sets up the software on those machines once they exist, and many teams use both. OpenTofu is a free, open-source copy of Terraform started after HashiCorp changed Terraform's licence in 2023. It reads the same files.
How KawaConnect works with infrastructure as code
We keep infrastructure as code in version control, run Kubernetes with GitOps, and build Proxmox VE clusters and Microsoft Azure setups. Describing that infrastructure in files lets a build be repeated and every change be traced.
Related services
Cloud infrastructure
Azure, hybrid setups, migrations and recovery planning.
Proxmox consulting
Clusters, high availability and migrations from VMware.
Kubernetes consulting
Clusters changed through Git with GitOps.
Learn more
- Terraform documentationHashiCorp's guides and reference for the configuration language and the command line.
- Terraform RegistryThe public catalogue of providers and reusable modules, with documentation for each.
- OpenTofuThe open-source fork of Terraform, maintained under the Linux Foundation.
- Terraform on WikipediaA neutral overview of the tool, its history and the 2023 licence change.
Related guides
Amazon Web ServicesMicrosoft AzureProxmox VEGitCloudAnsibleKubernetesGitHub
Infrastructure built by clicking?
Tell us where your servers and cloud services run. We will explain what describing them in files would take and what it would change for you.
Start a conversation