BeCuriouzBeCuriouz

Learn something new every day

🛠️ Tools & Services
🏗️

Terraform: the tool that treats servers like source code

💡 Terraform lets you define infrastructure in version-controlled files and preview every change before it happens, turning manual cloud clicking into reviewable, repeatable code.

Before Terraform, spinning up cloud infrastructure often meant clicking through a web console — creating a server here, a database there, a load balancer somewhere else. That works until you need to do it again, reliably, or figure out what someone changed last month. Terraform, made by HashiCorp, is an infrastructure as code tool: you describe the servers, networks, and services you want in plain-text config files, then let Terraform build them for you.

The magic trick is Terraform's state file and its plan step. Terraform keeps a record of what it believes already exists, compares that to your config, and shows you an execution plan — exactly what it will create, change, or destroy — before touching anything. This declarative approach means you describe the desired end state, not the step-by-step commands, and Terraform figures out the difference. Nothing happens until you approve.

It talks to clouds through providers — plugins that wrap each platform's API. There are thousands of them (AWS, Azure, Google Cloud, Kubernetes, GitHub, Datadog), which is why one consistent workflow — write, plan, apply — can manage wildly different services. That portability is a big reason Terraform became an industry default.

🏗️ Terraform: the tool that treats servers like source code — BeCuriouz