Terraform

Defining infrastructure in code so it can be rebuilt the same way every time.

Terraform basics

Each lesson explains one idea in plain words, with a hands-on step you can run yourself. The first six lessons run entirely on your own computer, so nothing can cost you money; Lesson 7 moves to a real cloud, and shows you how to clean up so nothing keeps billing you.

  1. 1What Terraform solvesStart · 20 min
  2. 2Reading a planStart · 20 min
  3. 3State: how Terraform remembersStart · 20 min
  4. 4Providers and resourcesStart · 25 min
  5. 5Variables and outputsStart · 25 min
  6. 6Repeating and choosing: count, for_each and conditionalsStart · 30 min
  7. 7Your first real cloudStart · 30 min
  8. 8Remote state and working in a teamStart · 30 min
  9. 9Modules and tidy habitsStart · 30 min

Create a DigitalOcean Kubernetes cluster with Terraform

One cluster, one node pool, plan, apply, and destroy at the end so nothing bills you.

BeginnerComing soon

Terraform Registry

Official provider docs and modules for infrastructure as code.

Free