ChiselOps

Case 03 · infrastructure as code

The environment one person knew

A team of twelve. Production and two test environments were brought up by hand, and exactly one engineer could do it in full - from memory, over several days.

The third of four cases. The others are about release, about restore and about an incident review.

What it was

The environments had drifted apart far enough that “works on mine, not on production” became a weekly event. A new hire could not bring an environment up without that one engineer, and that engineer could not take a holiday without leaving a procedure that went stale within a month. There was no shared state with a lock: two people could change the same thing at once, and the last one quietly overwrote the other.

What we did

We described all three environments in code and separated what is created fresh from what is carried over with its data. We set up a single state store with a lock and a dry run on every change - it shows the difference before applying, so “accidentally drop the database” now takes a deliberate yes. We ran two sessions with the team; the second a week later, once the real questions had surfaced.

Measured fourteen weeks after handover. “From scratch” means on a bare machine, with no person involved.
MeasureBeforeAfter
Environments brought up from code03
Bringing an environment up from scratch≈3 days, one person40 minutes from the repository
Manual steps to create an environment221
People who can bring an environment up14
Lock on the shared statenoyes
Staging ↔ production drifts per quarter60

Limits

We did not move data between providers and did not write extensions for their rare services - the service page says so plainly. One of the four people who learned to bring the environment up left the company six months later; three remain, which is still three times the one we started with.

Dates

Audit
14 April 2025
Work
21 April - 22 May 2025
Handover
26 May 2025
Result measured
1 September 2025

How the service itself works is on the “Infrastructure as code” page; why we will not work without a state lock is in the piece on reproducibility.