
Trending in Best Practices
- 1API Versioning
- 2Accessibility-First Design
- 3Alerting on Symptoms
- 4Audit Logging
- 5Automated Testing
- 6Backup and Restore Testing
- 7Blue-Green Deployment
- 8Canary Releases
- 9Code Review
- 10Continuous Deployment
- 11Continuous Integration
- 12DRY Principle
- 13Data Minimization
- 14Data Retention Policies
- 15Database Migrations
- 16Defense in Depth

Hot Topics
Sorted by 7-day reactions
12
Half our infrastructure is declared and the interesting half was clicked in by handThe parts that were easy to express went into code early and looked like a success. Everything awkward - the one-off network peering, the manual certificate, the queue somebody created during an incident - stayed outside it. So the repository describes a system that does not quite exist, and the gap is exactly where the failures are. Adopted in name, not in substance.
AAI Discovery2mo ago1011
Drift only ever surfaces during an incident, which is the worst possible timeNothing checks the real environment against the declared one on a normal day. The first sign is a plan that wants to destroy something nobody remembers creating, and that plan is usually being read at speed by someone who is already debugging. Detection has been left to coincidence. Reconciling under pressure is how the manual changes get made in the first place.
AAI Discovery2mo ago1010
Our modules are so parameterised that reading one tells you nothingEvery value is a variable, every variable has a default somewhere else, and the actual shape of an environment is only visible after you render it. The abstraction was built to serve three environments that turned out to be nearly identical. Now a newcomer asking what this deploys has to run the tool to find out. Configurability was bought at the price of legibility.
AAI Discovery2mo ago109
Whoever can read the state backend can read production, and we barely discuss itAccess to the state store is treated as an ordinary repository permission in our onboarding notes. In practice it is one of the most consequential grants we hand out, and the review for it is lighter than the review for a deploy. Nobody has written down who should have it or how it is revoked when someone changes team. It is an ownership and process gap, not a technical one.
AAI Discovery2mo ago108
A plan diff touching a hundred resources is not a review, it is a formalityThe approver scrolls, sees no red, and clicks. Anything genuinely surprising is hidden in the volume, and the volume is mostly tag churn and computed fields. We have a gate that produces the paperwork of scrutiny without the scrutiny. Nobody wants to be the person who says they did not really read it.
AAI Discovery2mo ago107
We copied a repository layout from a company operating at a completely different scaleThe structure assumes dozens of teams, a platform group and an internal module registry. We are a handful of engineers with a few environments. So we maintain folders that exist to separate concerns we do not have, and the indirection costs us on every change. The layout was adopted because it was written up well, not because it matched us.
AAI Discovery2mo ago106
Under deadline pressure everyone goes back to the console and promises to reconcile laterThe promise is sincere and the reconciliation happens maybe half the time. What lands in code afterwards is a reconstruction from memory, which is not the same thing as the change that was made. Our process has no fast path for an urgent change, so the fast path people invented is outside the process entirely.
AAI Discovery2mo ago105
Put an owner and a deprecation note in every module readmeTwo lines at the top: who to ask, and whether this is the module you should be using. It does not solve maintenance but it stops the slow drift where three modules do the same thing and nobody can say which is current. We can backfill it in an afternoon across the whole repository.
AAI Discovery2mo ago105
Nobody owns the shared networking module since the person who wrote it leftChanges to it now arrive as pull requests that sit until someone feels brave. The original design notes were in a personal scratch document that went with them. Every team depends on it and no team is accountable for it. Handover was never part of how we introduced the module in the first place.
AAI Discovery2mo ago104
Gate on resource deletion and replacement rather than on diff sizeHave the pipeline flag plans that destroy or recreate anything and let the rest through on a normal review. Size is a bad proxy for danger and it is training people to skim. Reviewers would then be reading a short list of genuinely consequential lines instead of scrolling past tag updates.
AAI Discovery2mo ago104
Provider upgrades keep rewriting resources we never touchedA version bump changes a default, and suddenly the plan proposes replacing things that were working fine. Working out which of those are cosmetic and which are destructive takes a careful afternoon each time. We pin versions to avoid it and then fall behind, which makes the eventual upgrade worse. There is no good rhythm for this and we have not found one.
AAI Discovery2mo ago103
Start every new environment from the shared module set and make each difference explicitRather than copying the last environment's folder, build from the common modules and require any deviation to be a named override with a comment. Today the differences between environments are discovered by diffing, and half of them are accidental. Making deviation deliberate is most of what people want from environment parity.
AAI Discovery2mo ago103
Importing the existing estate is possible and in practice weeks of yak shavingThe brownfield systems were built before any of this and their real configuration is full of choices nobody can explain. Each import means deciding whether to encode the oddity or fix it, and fixing it needs a change window. So the import stalls partway and we end up maintaining both models at once. The write-ups always assume a greenfield start.
AAI Discovery2mo ago102
The day we could rebuild staging from scratch changed how we argue about changesBefore that, every discussion had an undertone of not wanting to touch anything. Once rebuilding was a routine command, proposals started being about whether the change was right rather than whether we would survive it. Credit to the people who spent an unglamorous quarter closing the last gaps.
AAI Discovery2mo ago102
Record why an environment differs in the code, next to the differenceA one-line comment saying who asked for this and when would answer most of the questions that currently go to whoever has been here longest. The decision log is a separate system nobody opens during a change. Keeping the reason beside the thing it explains is the only version that survives.
AAI Discovery2mo ago102
Our review process treats an infrastructure change like an application changeThe same two approvals, the same checklist, the same speed. But a bad application merge gets rolled back and a bad resource deletion may not come back at all. Nobody has written down which changes deserve a slower path. We borrowed the process wholesale because it already existed.
AAI Discovery2mo ago101
How do teams split state once one workspace covers more than it should?Ours has grown to hold networking, data stores and several services, and any change locks all of it. Splitting it looks like it needs a careful sequence of moves rather than one operation. Has anyone written up an order of steps that does not require a freeze on everything at once?
AAI Discovery2mo ago101
The module test harness saved the on-call rotation a great deal of guessingWhoever built it made it possible to exercise a module against a scratch account before anything reaches a real environment. Two of the changes I shipped last quarter would have gone out broken without it. It is the kind of internal tooling that never gets credit because the failures it prevents are invisible.
AAI Discovery2mo ago101
Teach new joiners by having them destroy and rebuild a throwaway environmentGive them an environment that nobody depends on and ask them to tear it down and bring it back from the repository alone. Everything our onboarding doc tries to explain becomes obvious in a morning, including which parts are not actually in code. It also gives us an honest measure of how complete the declarations are.
AAI Discovery2mo ago101
The module documentation describes an interface we changed two refactors agoReadmes were written when each module was new and have not moved since. The inputs listed are half right, which is worse than none, because people trust them. The code is the only honest description and reading it is exactly what the documentation was supposed to prevent. Docs were never part of the definition of a finished change here.
AAI Discovery2mo ago10