In my last post, I turned an incident response runbook into a Step Functions workflow. Readers asked what happens when the permissions or services the workflow depends on break mid-incident.
Start one step earlier. What if it never starts at all?
Picture a drill. A finding comes in. The intake service accepts it. Step Functions never confirms a start. Five minutes later, the on-call engineer still has no page, and there’s no failed execution on the dashboard. There might not even be an execution to look at.
That five-minute silence is the failure I’d test first. The timeline below is simulated. The Python drill later in the post runs locally with synthetic records.
Give the incident a deadline before you start the workflow
The intake service should save an open incident with a named owner or rotation and a deadline for its first update. Save that record before calling StartExecution. If the launch response is lost, the watchdog still has something to check. A timed-out request leaves the start unconfirmed, so reconcile before trying to launch again. For a Standard workflow, keep a stable execution name and the original input for that attempt. AWS returns the existing execution for the same name and input while it’s running. A closed execution can return ExecutionAlreadyExists, which is a reason to look up the prior attempt. AWS StartExecution reference
Once the workflow starts, each meaningful step sets a new deadline. A verified snapshot copy, for example, can move the incident to “awaiting approval” and set an approval deadline. A worker that’s still alive but hasn’t made progress shouldn’t get to keep extending the clock.
Use two signals. A failure event can page quickly. A scheduled check on open incidents can catch work that never started or stopped reporting. Give the check its own identity and a paging route that can still work if the response role or approval service is down.
There’s still a boundary here. If the finding never reaches intake, there’s no incident record to age out. Cover that gap with a separate check on ingestion, such as a synthetic finding routed to a test destination. Give that test an expected acknowledgment and monitor it from outside the path it exercises.
What AWS will tell you, and where it can go quiet
- A task fails. A Step Functions catcher can take an explicit escalation branch. Catchers live on tasks, parallel states, and map states. A top-level execution timeout needs a signal from outside the execution. AWS error handling docs
-
A Standard execution fails, times out, or is stopped. An EventBridge rule can match
FAILED,TIMED_OUT, orABORTEDfor the relevant state machine. AWS describes these events as best effort and says they can arrive out of order. Route them to the incident owner and correlate them to the right execution attempt. AWS EventBridge integration docs - EventBridge receives the event but can’t deliver it. Configure target retries and a dead-letter queue, and watch that queue. This covers delivery failures for events that reached the rule. The overdue-incident check covers cases where no usable signal arrives. EventBridge retries · EventBridge dead-letter queues
Treat a failure event for an old execution as a clue. Check the incident record and the current attempt before paging, especially after a manual restart. Send the fast signal and the deadline alert through the same incident deduplication key when they represent the same escalation. Put the incident ID, current stage, owner, and case link in the page. Keep the full execution payload in the access-controlled case, and track page delivery separately from the human acknowledgment.
Break-glass access has a dependency list too
A second role in the same member account can give an operator a different identity. It still inherits the applicable AWS Organizations service control policies. An explicit deny that covers both roles still wins. Similarly, direct federation can help during an IAM Identity Center outage if the external identity provider and IAM data plane are still available. That dependency matters if the identity provider is the part you’re testing. AWS SCP evaluation · AWS emergency access
Put Can the person who gets this page actually take the next permitted action? on the drill sheet. Use the smallest operation that proves it, like opening the case and reading its evidence manifest with the approved recovery identity. Record the result and who owns the handoff. If the page arrives but nobody can inspect the case, the drill found something worth fixing.
The drill I’d run before the next incident
Use a synthetic finding in a sandbox. Route notifications to a test receiver, and keep destructive actions outside the exercise. Put a person on the receiving end so you can tell the difference between “an API accepted the page” and “somebody knows what to do.”
| Inject this | The drill passes when |
|---|---|
| Intake succeeds, but launch stays unconfirmed | The initial deadline expires and a responder gets the incident ID and takes ownership |
| A task reports failure | The failure signal pages before the deadline and the deadline check doesn’t send a duplicate |
| An approval expires | The incident remains isolated, remediation stays gated, and a person takes over |
| The paging target rejects delivery | The failed delivery is observable and the backup route reaches the test responder |
| The normal sign-in path is unavailable | A responder uses the approved emergency path and can read the synthetic case |
Afterward, record when intake accepted the finding, when the page arrived, and when a human acknowledged it. Give every miss an owner and a date to rerun that case. AWS’s guidance on incident response simulations is a good reference for running the exercise and capturing the results.
Run the paging rule locally
This models the decision only. The clock is simulated and PAGE means “the rule would page.” In a real implementation, the watchdog also needs reliable paging delivery, shared deduplication, and a way to correlate failure events with the current execution.
"""Exercise paging decisions locally with synthetic data. No AWS calls."""
from dataclasses import dataclass
@dataclass(frozen=True)
class Incident:
incident_id: str
next_update_due: int
closed: bool = False
execution_failed: bool = False
def should_page(incident: Incident, now: int) -> bool:
return not incident.closed and (
incident.execution_failed or now >= incident.next_update_due
)
def run_drill() -> None:
# Integer timestamps are minutes on a simulated clock.
scenarios = [
("Open, within deadline", Incident("drill-01", 5), 4, False),
("Failure event received", Incident("drill-02", 5, execution_failed=True), 1, True),
("Launch never confirmed", Incident("drill-03", 5), 5, True),
("Approval lease expired", Incident("drill-04", 60), 60, True),
("Closed before deadline", Incident("drill-05", 5, closed=True), 6, False),
]
for label, incident, now, expected in scenarios:
actual = should_page(incident, now)
if actual != expected:
raise AssertionError(f"{label}: expected page={expected}, got {actual}")
print(f"{label:<26} {'PAGE' if actual else 'OK'}")
print(f"\n{len(scenarios)} scenarios passed.")
if __name__ == "__main__":
run_drill()
Save that as watchdog_drill.py and run python3 watchdog_drill.py. The one I care about most is Launch never confirmed. There’s no failure event in that test. The open record and its expired deadline are enough.
Open, within deadline OK
Failure event received PAGE
Launch never confirmed PAGE
Approval lease expired PAGE
Closed before deadline OK
5 scenarios passed.
If your incident workflow never starts tonight, who gets paged, and what signal tells them? I’d love to hear how your team tests that part.


Top comments (9)
there’s no failed execution on the dashboardis the line I'd stop trusting first — that view is fed by the same account and credential chain that just failed to start the execution, so a revoked role or a disabled EventBridge rule renders it as "nothing ran". Keep the intake record as the anchor, but read it from a host that never calls StartExecution, page onnow - first_update_deadline > 300sfor two consecutive polls, and prove it in staging by disabling the rule for ten minutes.Saving the incident record before StartExecution is the part I'd copy. Where does the watchdog itself run though? If it sits on the same scheduler as everything else, it can go quiet in the same outage and nobody notices that either.
Same problem on the data center floor, except the watchdog is a person. When the alerting path itself is what's down, there's no second automated signal — the fallback is the shift log and the ticket queue, and a tech on rounds who finds a red light with no open ticket. Your 'open incident with a named owner and a deadline' is exactly how a break-fix ticket has to work: if it has no owner and no next-check time when the shift ends, it dies quietly and nobody gets paged. The drill I'd run is the same one: kill the paging path on purpose and see who notices, and how fast.
Saving the incident record with an owner and a deadline before calling StartExecution is the right order, because it gives the watchdog something to check even when the launch response never comes back. Renhua's point stands too: a dashboard fed by the same credential chain that failed will show "nothing ran" rather than "could not start".
Ascendra Ventures dealt with a smaller version of that silence on a Microsoft Teams bot that bridges users to a Genesys Cloud service desk. A user types Hi in Teams and is routed to a live agent within seconds, and agent replies flow back into the chat because middleware subscribes to Genesys notification APIs. The webhook path and the event-subscription path were tested against each other, since from the user's side a subscription that has quietly stopped looks exactly like a service desk that has nothing to say.
On X1Y1's question about the watchdog itself, would you run its heartbeat from a separate account and scheduler? That seems like the only place it can notice the main path going quiet without going quiet with it.
A separate account and scheduler is the floor, not the ceiling: if the watchdog and the job it watches sit under the same provider, an IAM or billing lock on that account quiets the heartbeat with the job. The stronger invariant is a dead-man's switch: each run does one curl -fsS $HEARTBEAT_URL and you page on now - last_ping > period + grace (60s cadence, 180s grace) instead of on error events, so silence itself is the alert. And ring the real paging path with one synthetic page a day, because a monitor that can't page is just a log line.
Launch never confirmed paging with zero failure events is the case I'd have missed. what catches the watchdog itself going quiet, a heartbeat on its last run?
Genius
Thanks!
Great article