Skip to content

Instantly share code, notes, and snippets.

View mikebreed's full-sized avatar

Mike Breed mikebreed

  • Compassion Intl
  • Colorado Springs, CO
  • 20:26 (UTC -07:00)
View GitHub Profile
@massenz
massenz / ErrorStateMachine.json
Last active April 5, 2023 19:47
Demonstrates how to generate different types of errors for AWS Lambda Step Functions, so that Retry/Catch can distinguish between different kinds of errors.
{
"Comment": "A state machine to experiment with errors",
"StartAt": "Error Handler",
"States": {
"Error Handler": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke",
"OutputPath": "$.Payload",
"Parameters": {
"Payload.$": "$",