Step Function Variables | In this video we will see what is step function variables and how to use step function variables. We will also see what is input path, what is result path and what is output path.
We will also see how to pass variables to a lambda function from step function.
ResultPath:
The output of a state can be a copy of its input, the result it produces (for example, output from a Task state’s Lambda function), or a combination of its input and result. Use ResultPath to control which combination of these is passed to the state output.
InputPath:
Use InputPath to select a portion of the state input.
OutputPath:
OutputPath enables you to select a portion of the state output to pass to the next state. This enables you to filter out unwanted information, and pass only the portion of JSON that you care about.If you don't specify an OutputPath the default value is $
Step Functions basics: • AWS Step Function Basics | Schedule Step F...
AWS Documentation:
https://docs.aws.amazon.com/step-func...
Steps followed by me with the options that is chose:
Input to the Step Function
---------------------------
{
"myinput": {
"incoming_variable": "first input"
}
}
1st state
---------
no payload
add original input to output
$.metadataOutput
2nd state
---------
payload
{
"input_to_lambda.$": "$.incoming_variable"
}
filter input with $.myinput
filter output with output path with $.Payload