Starting StepFunction Executions
The first and most important step to begin performance testing a StepFunction is being able to start its execution. To do this we can
To do this, you pass a(n):
arn
: The ARN to the StepFunction you want to executepayload
: The data you want to use when starting an execution
sfn("Start item-batch-processor Execution").startExecution
.arn("arn:aws:states:eu-west-1:000000000000:stateMachine:your-sfn-name")
.payload("{\"data\": \"whatever-json-data-you-should-pass-in\"}")
sfn("Start item-batch-processor Execution").startExecution
.arn("arn:aws:states:eu-west-1:000000000000:stateMachine:your-sfn-name")
.payload("{\"data\": \"whatever-json-data-you-should-pass-in\"}")
sfn("Start item-batch-processor Execution").startExecution
.arn("arn:aws:states:eu-west-1:000000000000:stateMachine:your-sfn-name")
.payload("{\"data\": \"whatever-json-data-you-should-pass-in\"}")