Skip to content

Instantly share code, notes, and snippets.

@dkavanagh
Created October 24, 2017 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dkavanagh/98c9b421421adc71a6fa7bab92cab964 to your computer and use it in GitHub Desktop.
Save dkavanagh/98c9b421421adc71a6fa7bab92cab964 to your computer and use it in GitHub Desktop.
simple state w/ retry/catch
{
"Comment": "A Hello World example of the Amazon States Language using a Pass state",
"StartAt": "HelloWorld",
"States": {
"HelloWorld": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:721404732763:function:WaitForFive",
"End": true,
"Retry": [
{
"ErrorEquals": [ "Exception" ],
"IntervalSeconds": 5
}
],
"Catch": [
{
"ErrorEquals": [ "States.Timeout" ],
"Next": "Finish"
}
]
},
"Finish" :{
"Type": "Pass",
"End": true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment