Retry & Catch: Declarative Error Handling

~8 min read

How Step Functions moves error-handling logic out of application code and into the workflow definition itself.

Retry & Catch: Declarative Error Handling is a Pro topic

Sign in, then upgrade to Pro or Power to unlock this topic and the full AWS curriculum.

Key points

  • Retry: automatically re-invokes a state on matching errors, per a configured interval/max-attempts/backoff policy
  • Catch: routes to a fallback state when an error occurs (after retries are exhausted, if configured)
  • Both are declared in the state machine definition, not hand-coded inside individual Lambda functions
  • Centralizes a workflow's entire error-handling behavior into one auditable, visual definition