Created
June 10, 2018 02:25
-
-
Save SamanShafigh/586d02dca513b6d0fcb1dce1ebddca15 to your computer and use it in GitHub Desktop.
step-function config
This file contains 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 step function to test some lambda functions in Go", | |
"StartAt": "Step1", | |
"States": { | |
"Step1": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:ap-southeast-2:xyz:function:lambda-f1", | |
"Next": "Step2" | |
}, | |
"Step2": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:ap-southeast-2:xyz:function:lambda-f2", | |
"Next": "ChoiceState" | |
}, | |
"ChoiceState": { | |
"Type": "Choice", | |
"Choices": [ | |
{ | |
"Variable": "$.status", | |
"NumericGreaterThanEquals": 50, | |
"Next": "Step3" | |
} | |
], | |
"Default": "Step4" | |
}, | |
"Step3": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:ap-southeast-2:xyz:function:lambda-f3", | |
"End": true | |
}, | |
"Step4": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:ap-southeast-2:xyz:function:lambda-f4", | |
"End": true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment