Skip to content

Instantly share code, notes, and snippets.

@SamsadSajid
Created May 15, 2020 10:24
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 SamsadSajid/74eee11a299e14c8e13ccf060f309f1d to your computer and use it in GitHub Desktop.
Save SamsadSajid/74eee11a299e14c8e13ccf060f309f1d to your computer and use it in GitHub Desktop.
{
"StartAt": "InvokeLambdaState",
"States": {
"InvokeLambdaState": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-2:XXXXXXX:function:step-function-invoking-lambda-function",
"Parameters": {
"target_value": 9
},
"Next": "CheckStatusFromLambda"
},
"CheckStatusFromLambda": {
"Type": "Choice",
"Choices": [
{
"Variable": "$.statusCode",
"NumericEquals": 200,
"Next": "SuccessState"
},
{
"Variable": "$.statusCode",
"NumericEquals": 400,
"Next": "FailedState"
}
]
},
"SuccessState": {
"Type": "Pass",
"End": true
},
"FailedState": {
"Type": "Fail"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment