No. 27 Failover Weekly,

The Map You Did Not Draw

Why "Regional" Is Something You Measure, Not Something You Declare

The Map You Did Not Draw: diagram

Last issue closed with a promise: the dependency map you did not draw. Here it is: three ways to see the calls a “Regional” workload really makes, what the next generation of AWS Resilience Hub now automates and where it is blind, and how to test the difference between a dependency you think is soft and one that is.

A payments platform. Composite, as usual: three engagements, one shape.

Everything ran in Europe (Frankfurt): three Availability Zones, a standby Region, an architecture diagram with no arrows leaving eu-central-1. The team was proud of that diagram, and they had reason to be.

Then US East (N. Virginia) had a bad afternoon.

Frankfurt was healthy, and two things broke anyway. The mobile app took twelve seconds to open. And the nightly settlement batch failed before it processed a single record.

The app was waiting on a feature-flag service. The backend asked it for flags at every session start, synchronously, with a generous timeout. The vendor hosted that service in US East (N. Virginia). Nobody had chosen that; they had chosen the vendor.

The batch was stranger. It ran on an older Amazon Elastic Compute Cloud (Amazon EC2) fleet whose code still called the global AWS Security Token Service (AWS STS) endpoint, sts.amazonaws.com, to assume a role in the settlement account. The team knew AWS had changed that endpoint to serve requests locally. What they did not know was the condition attached to that change, and their fleet failed it.

Two dependencies. Neither on the diagram. Both in the logs, if you knew which log to read.

“Regional” is a measurement, not a declaration

Here is the reframing.

We treat “Regional” as something we declare: we deployed into one Region, so the workload is Regional. But it is a property of behaviour. A workload is exactly as Regional as the set of endpoints it actually reaches, and that set is written by SDK defaults, vendor choices, DNS configuration and the engineer who added one call two years ago.

So the dependency map is not drawn. It is measured, and then compared against the drawing. The difference is your unexamined risk.

No single signal measures all of it. Names, API calls and addresses each see a different layer, and each of the two dependencies above is visible in one and invisible in another.

Lens one: names, and what the new Resilience Hub sees

Almost every dependency starts with a DNS query, which makes DNS the cheapest place to look.

You can do it yourself with Amazon Route 53 VPC Resolver query logs, which record the name, answer, source instance and VPC Region of each query the Resolver does not answer from its cache. Since 28 May you can also have it done for you: the next generation of AWS Resilience Hub, now generally available, includes dependency discovery. It analyses the DNS queries your service’s compute makes (Amazon EC2 instances, Amazon Elastic Container Service (Amazon ECS) tasks, Amazon Elastic Kubernetes Service (Amazon EKS) pods and AWS Lambda functions), with no agents or code changes. It looks back over 35 days of query history (less for Lambda functions, whose history starts when Lambda support reached the Region or when you enabled discovery, whichever is later), keeps discovering continuously (summarised by hour), and attributes dependencies to the specific compute resources in your service that query them.

The output is the table this exercise always needed: dependency name, type (AWS service, third-party or internal), location (the documentation’s examples are “AWS us-east-1”, “Azure us-central” and “RFC1918”), a hard or soft criticality that you assign (unclassified until you do), query frequency, and first and last seen. Since September, dependency insights summarises the list, flagging cross-Region dependencies, dependencies first seen in the last seven days, third-party dependencies, and strong day-of-week or time-of-day variance, which may indicate undocumented scheduled jobs or batch tasks. Dependency discovery itself is an optional add-on at $10 per service per month; the next generation was announced in 15 Regions, Frankfurt among them.

That is exactly where the feature-flag vendor would have surfaced: a third-party name, resolving to another Region, called by the API tasks at every session start.

Now the honest boundary, which the documentation states plainly. Discovery only sees queries that go through the Route 53 Resolver: the EC2, ECS and EKS compute, and any VPC-connected Lambda functions, must sit in a VPC that uses it. Connections made by IP address are not discovered. Dependencies called less than once an hour may be missed in initial discovery. Multi-tenant EKS clusters can attribute a dependency to the wrong service.

The batch fleet failed the first condition. Its VPC’s DHCP options pointed at the corporate DNS servers. To Resilience Hub discovery and VPC Resolver query logs, the batch was silent.

Lens two: API calls, and the request served in Virginia

Here is the condition the team had missed. Since April 2025, requests to the STS global endpoint in Regions enabled by default are served in the caller’s own Region, but only when the query is resolved by the Amazon DNS server in that VPC. Resolve it with your own DNS servers, an ISP’s or a public resolver, or call it from an opt-in Region, and the request is still served in US East (N. Virginia).

Same SDK, same endpoint, different dependency, decided by the resolver.

AWS CloudTrail records the truth. Requests to the global endpoint are logged in us-east-1, and both global and Regional STS events carry endpointType and awsServingRegion under additionalEventData. The tlsDetails.clientProvidedHostHeader field records the host name of the call. For a global-endpoint call served locally, AWS’s own example shows a Regional name such as sts-global.eu-north-1.amazonaws.com, not sts.amazonaws.com, so filter on endpointType rather than relying on the host alone, and keep the literal host as a fallback, because AWS’s examples document only the locally served case. Point Amazon Athena at the us-east-1 prefix of a multi-Region trail and ask:

-- Who still calls the STS global endpoint, and where is it served?
-- Table: CloudTrail logs, us-east-1 prefix (global-endpoint events land there)
SELECT useridentity.sessioncontext.sessionissuer.arn  AS caller_role,
       sourceipaddress                                AS source_ip,
       tlsdetails.clientprovidedhostheader            AS host,
       json_extract_scalar(additionaleventdata,
         '$.RequestDetails.awsServingRegion')         AS served_in,
       count(*)                                       AS calls
FROM   cloudtrail_us_east_1
WHERE  eventsource = 'sts.amazonaws.com'
  AND (json_extract_scalar(additionaleventdata,
         '$.RequestDetails.endpointType') = 'global'
       OR tlsdetails.clientprovidedhostheader = 'sts.amazonaws.com')
  AND  "timestamp" >= '2026/11/01'
GROUP  BY 1, 2, 3, 4
ORDER  BY calls DESC;

Every row where served_in is us-east-1 for a role you run outside N. Virginia is a cross-Region dependency; the source address helps you place the caller. The fix is the one AWS recommends anyway: Regional STS endpoints, set through sts_regional_endpoints for the SDKs that still default to legacy.

The same lens finds control-plane calls. CloudTrail records IAM events in us-east-1, where the AWS Identity and Access Management (IAM) control plane lives, and that control plane is every public IAM API, reads included. A job that calls GetRole at start-up has a dependency on N. Virginia, wherever it runs in the commercial aws partition.

Two caveats. Trails log management events by default, not data events. And tlsDetails is absent when an AWS service made the call on your behalf.

Lens three: addresses, for what never asks DNS

What both lenses miss is a non-AWS connection made by IP address. Amazon VPC Flow Logs in a custom format can add pkt-dst-aws-service and flow-direction; joining egress destinations against ip-ranges.json maps each AWS prefix to its Region, or to GLOBAL for services whose traffic can come from many. It is coarse, but it is the only lens for the hard-coded address.

Hard and soft are hypotheses

A list of endpoints is trivia until each one has a verdict.

AWS’s Availability and Beyond whitepaper defines the terms: hard dependencies are “those things that your workload cannot function without”; soft dependencies are those “whose unavailability can go unnoticed or tolerated for some period of time.” Resilience Hub lets you record a verdict per dependency with the update-dependency command and its --criticality option.

Its guideline table lists “feature flags” as an example of a soft dependency.

At the payments platform, it was hard. The fallback existed (default flag values), but it sat behind a timeout long enough to make the app unusable. A soft dependency with a slow failure path is a hard dependency with better branding.

So treat every label as a claim about failure behaviour, not importance. The same whitepaper explains why the count matters: a workload’s theoretical maximum availability is the product of its dependencies’ availabilities. It cautions that the result is only a rough order of magnitude, likely not accurate on its own, but the direction is clear. In its words: “Reducing dependencies can have a positive impact on availability.” The Reliability Pillar of AWS Well-Architected names the remedy, REL05-BP01: “Implement graceful degradation to transform applicable hard dependencies into soft dependencies.” Among its anti-patterns: “Not testing that components are functional even during dependency failures.”

Test the verdict, not the diagram

Resilience Hub’s resilience tests are built on AWS Fault Injection Service (AWS FIS), and two of its four templates fit this work.

Dependency validation blocks the dependencies you select within the Region (picked from discovery, or typed in as DNS names) by injecting 100% packet loss from EC2 instances, ECS tasks and EKS pods. It passes if your success alarms stay in OK for the whole run, 30 minutes by default in the console. The documentation says it directly: if your alarms breach, the dependency may actually be hard.

Multi-Region: isolation cuts a Region off from another, for three hours by default in the console. It blocks traffic from your subnets to the destination Region’s public AWS address ranges, Transit Gateway peering and cross-Region VPC endpoints; pauses Amazon S3, Amazon DynamoDB and Amazon MemoryDB replication; and can also block discovered dependencies between the two Regions. For the payments platform: isolate eu-central-1 from us-east-1, add the flag vendor’s domain, and watch the session-start latency alarm.

Read the prerequisites before the calendar invite. Blocking dependencies needs SSM Agent on EC2 instances, an SSM Agent container in ECS task definitions, or a Kubernetes service account for EKS. Packet loss is not re-applied to tasks replaced mid-test. The FIS route-table action behind the isolation needs your routes-per-route-table quota raised to 250, or 350 when the Region being cut off is us-east-1 as in the example above, plus the routes already in your tables. Tests are billed at FIS action-minute pricing.

What none of this tells you

The map shows the code paths that ran in your window. The quarterly job, the certificate renewal, the failover itself: their calls appear only when they run. You will not see your recovery path’s dependencies until you rehearse your recovery.

It shows your edge of a dependency, not what is behind it. Discovery can tell you where the vendor’s endpoint resolves; it cannot tell you what that vendor depends on. That comes from contracts.

And a passed test covers what it exercised. The FIS cross-Region scenario notes that traffic from AWS managed services may not be blocked; the dependency tests ask you to confirm traffic was actually flowing to what you blocked. A pass says the workload degraded gracefully on the paths you tested, from the compute you targeted. It is not a certificate of Regional independence.

The lesson, generalized

A dependency you did not choose is still a dependency you have.

Every system has two architectures: the one in the diagram and the one in the packets. Reviews look at the first. Incidents run on the second. The job is to measure the second, give every unexpected line a verdict, and test the verdicts.

That holds well beyond networks: the supplier who quietly subcontracts, the approval that depends on one person’s calendar, the runbook that assumes the wiki is up.

One more line for the review: when did we last compare what we drew with what we observed, and who signed off on the difference?

What’s next

This issue ended by cutting a Region off on purpose. That raises a question teams usually discover the hard way: what happens when the experiment itself misbehaves?

Next issue: experiments that can stop themselves. Stop conditions tied to the metrics your customers feel, blast-radius limits that hold when a tag is wrong, and why the rollback of a fault experiment must never depend on the thing you just broke.

Get the next newsletter in your inbox

One essay every two weeks, plus a short note when a new article is published here.

Subscribe to Failover Weekly

All issues 27

  1. Issue 27: The Map You Did Not Draw
  2. Issue 26: The Switch Already Thrown
  3. Issue 25: Warm Is a Resource
  4. Issue 24: Mostly One Leader
  5. Issue 23: Your request needs a deadline
  6. Issue 22: Exactly-Once Has Boundaries
  7. Issue 21: Retries are Multipliers
  8. Issue 20: Your Health Check Is a Trigger, Not a Test
  9. Issue 19: Reachability Is Not Readiness
  10. Issue 18: When Your Load Balancer Stops Trusting Its Own Health Checks
  11. Issue 17: Reaped, Not Broken
  12. Issue 16: I Pointed a Browser at the Internet's Nervous System. Here's What It Taught Me About Signal and Noise.
  13. Issue 15: High vs Maximum Resilience on Direct Connect
  14. Issue 14: Multi-signer DNSSEC without losing your weekend
  15. Issue 13: DNS as your steering layer
  16. Issue 12: Amazon Application Recovery Controller in practice
  17. Issue 11: Three Cats, Zero Downtime
  18. Issue 10: The book is here.
  19. Issue 9: Lies Cloud Architects Tell Themselves at 2 AM...
  20. Issue 8: 386 Outages in One Week
  21. Issue 7: When BGP, Firmware, and Failover Collide
  22. Issue 6: CLOUD RESILIENCE INSIDER
  23. Issue 5: Resilience Migration Advisor
  24. Issue 4: How a Central US Admin-Plane Dependency Exposed a Wider Control-Surface Risk
  25. Issue 3: When Drones Hit Your Availability Zones
  26. Issue 2: When the Network Breaks
  27. Issue 1: Your Multi-AZ Architecture Probably Has a Single Point of Failure