Skip to content

Instantly share code, notes, and snippets.

@SamanShafigh
Created June 10, 2018 02:25
Show Gist options
  • Save SamanShafigh/586d02dca513b6d0fcb1dce1ebddca15 to your computer and use it in GitHub Desktop.
Save SamanShafigh/586d02dca513b6d0fcb1dce1ebddca15 to your computer and use it in GitHub Desktop.
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