Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
step-function config
{
"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