Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 07 · DevOps · CI/CD, IaC & Operations · about 14 min to read

Play it as a journeyTutor comes with a plan

Terraform for a team: modules, state and environments

IaC and GitOps
IaC and GitOps · Open board

The blueprint, the state and the real system, the three things this lesson keeps in order when five people share them.

Before you start. You need three things from Infrastructure as Code & GitOps. Terraform reads a file that says what should exist and makes the real cloud match it. It keeps a state file, its own record of what it built. Drift means someone changed the real system by hand. From Config, Secrets & Storage you need one fact: a secret must never sit in a plain file in git. This lesson is about what changes when one person becomes five.

Lesson 50 of 70 in DevOps

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • Two engineers, one state file
  • A module: one folder you call many times
  • A remote backend: one shared state, kept in a safe place
  • A lock: only one apply at a time
  • A per-environment layout: one folder, one state, per environment
  • Plan in CI: the pull request shows the change before it happens
  • Workspaces or folders
  • What a module should and should not do
  • Plan in CI, the details
  • Testing
  • Drift, and how a team finds it
  • Trade-offs and real systems

Terms it explains: environment, module, backend, remote backend, lock, CI, Common mistakes, workspaces, IaC.

Review DevOps