Amazon Lambda · Arazzo Workflow
Amazon Lambda Deploy and Invoke Function
Version 1.0.0
Create a Lambda function, wait for it to become Active, then invoke it.
Provider
Workflows
deploy-and-invoke-function
Create a function, poll until Active, and invoke it.
Creates a Lambda function, polls GetFunction until the State reported by Lambda is Active, branches on the terminal Failed state, and then invokes the function with a sample payload.
1
createFunction
CreateFunction
Create the Lambda function from the supplied runtime, role, and handler. The function is typically returned in the Pending state.
2
waitForActive
GetFunction
Poll the function until Lambda reports it has finished provisioning. A State of Active continues to invocation; a State of Failed branches to the failure handler.
3
invokeFunction
InvokeFunction
Invoke the now-Active function with the supplied event payload and capture the response.
4
reportFailure
GetFunction
Re-read the function configuration when it has entered the Failed state so the caller can surface the terminal state.