Created
October 24, 2017 16:38
-
-
Save dkavanagh/98c9b421421adc71a6fa7bab92cab964 to your computer and use it in GitHub Desktop.
simple state w/ retry/catch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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