Amazon Lambda · Arazzo Workflow
Amazon Lambda Deploy Function With Event Source
Version 1.0.0
Create a function, wait until Active, attach an event source mapping, and wait until Enabled.
Provider
Workflows
deploy-with-event-source
Create a function, wait for Active, then attach and enable an event source mapping.
Creates a function and polls GetFunction until Active, then creates an event source mapping against that function and polls GetEventSourceMapping until the mapping is Enabled.
1
createFunction
CreateFunction
Create the Lambda function. It is typically returned in the Pending state.
2
waitForActive
GetFunction
Poll the function until Lambda reports it Active. A Failed state branches to the failure handler.
3
createMapping
CreateEventSourceMapping
Create an event source mapping that wires the supplied event source to the now-Active function.
4
waitForEnabled
GetEventSourceMapping
Poll the mapping by UUID until it finishes provisioning and reports the Enabled state.
5
reportFailure
GetFunction
Re-read the function when it has entered the Failed state so the caller can surface the terminal state before any mapping is created.