Infrastructure / DevOps

What is Terraform? Infrastructure as code explained

Terraform explained: write servers and databases as code, preview each change with plan, build it with apply, and reuse the same setup across dev and prod.

  • 7 min read
  • 5 questions
  • +35 XP
Transcript

Terraform, explained by cats. Kitty needs servers. A database. A network. Maybe a load balancer for all her tuna traffic. She could click around in the cloud by paw. One screen at a time. Instead, Kitty uses Terraform. Terraform lets her describe infrastructure in code.

“Make me 3 servers.” “Add a database.” “Connect everything nicely.” Kitty writes the plan in files. Terraform reads them, checks what already exists, and shows what will change. Create this. Update that. Delete the old scratching post. Then Kitty runs apply.

And the cloud builds itself. No manual clicking. No guessing what changed. Everything is repeatable. Need the same setup for dev and prod? Use the same code. Need to change one thing? Update the file and apply again. Terraform can manage AWS, Azure, Google Cloud, and more.

One tool. Many clouds. Very busy cat. That’s Terraform, infrastructure as code so Kitty can build, change, and reuse her cloud safely. Less clicking. More purring. And faster tuna apps.