Skip to content

Observability as a Control Plane for Multi-Region Failover: Lessons From a Terraform Registry Outage

An InfoQ author describes a day-long Terraform registry failure traced to intermittent S3 signed URL errors, and argues for active-active regions and automated failover driven by observability.

3 min readBased on 1 source22 views

TL;DR

  • A Terraform registry outage was caused by intermittent failures on S3 signed URLs, which were hard to see from standard dashboards.
  • The author argues observability should trigger automated actions, not just inform on-call engineers.
  • Active-active multi-region designs keep the secondary region tested under real load, which makes failover less risky.

An outage that looked like a registry bug

The incident began when dashboards showed registry failures and artifacts that would not download. The author's team owned a Terraform execution platform whose module registry was backed by S3. Manual downloads of signed URLs worked, so the first suspicion fell on the team's own bucket policies and configuration.

The actual cause surfaced only after the team rebuilt the failing call pattern in a controlled environment. Terraform fires several signed URL requests in sequence when it resolves module dependencies. Some of them failed silently and inconsistently, which was enough to break pipelines. Instrumenting the client showed that Terraform's go-getter library sends a HEAD request to each signed URL before the GET to check whether a download can be resumed. The failure traced to that HEAD request. As InfoQ's author put it, the team had treated the cloud SLA "like a guarantee rather than a statistical claim."

Why the SLA is not a guarantee

The article uses the 99.99 percent availability figure as a reminder that rare failures are expected at scale. Detection took a few hours and recovery took much longer, mostly because the team had to prove the fault lay with the provider. AWS later rolled back a recent change in request handling, and the registry recovered without changes on the team's side.

The lesson is practical: when a managed dependency fails intermittently, reproduce the client's exact call pattern outside production and instrument the client as well as the server.

From reporting layer to control plane

The author argues that many observability systems are built to report, not to act. Dashboards and alerts drift out of calibration as teams change, and the person on call still has to interpret signals under stress. In a reporting model, a human receives an alert, decides and acts. In a control plane, the system evaluates the signal against a defined policy, acts, and then tells the human what happened.

The author notes that the required tools already exist. Prometheus supports alerting rules and webhook routing, and Terraform can change routing weights. The gap is wiring them together with automation as an explicit goal. The pattern described is observe, decide, act, and confirm, which applies from pod autoscaling up to regional failover.

Active-active instead of active-passive

The team moved the Terraform registry to an active-active design after a major regional failure at a cloud provider. The registry is called on every build, deployment and release, so its outages spread across every team. The author chose active-active because a passive region often has drifted configuration, cold caches and little real traffic history, which tend to surface during an incident.

Active-active has costs. Regions must stay in sync, and data consistency under partition needs careful design. The team ran a 50/50 split under normal load, so both regions were exercised continuously. When one region degrades, traffic shifts to 100/0.

Why it matters

For developers, the story shows that a dependency can fail in ways that look like a bug in your own code, so client-side instrumentation is worth having before an incident. For teams, the article argues for owning observability as production code, with regular reviews and failure tests, and for designing failover that is exercised in normal operation. DNS TTL and health-check settings also need deliberate choices, because a well-executed failover can still be slowed by them.

Sources

This article was written by Blozhik from the reporting below. Read the originals for full detail.

InArticle: Building Reliability Into the Cloud: Observability as the Control Plane for Multi-Region FailoverInfoQ
Was this useful?

Keep reading

Discussion · 0

Sign in to join the discussion. Liking does not need an account.Sign inRegister
Loading comments…
blozhikDeveloper news from across the web, explained. Every story links to its original sources.