AWS Lambda · Arazzo Workflow
AWS Lambda Deploy a Function and Verify It Runs
Version 1.0.0
Create a Lambda function from an S3 deployment package, wait for it to become Active, then invoke it once to prove it runs.
Provider
Workflows
deploy-function
Create a Lambda function, wait for it to become Active, and test-invoke it.
Creates a function from a ZIP archive already staged in Amazon S3, blocks until the function state settles to Active, and then invokes it synchronously with a caller-supplied test payload.
1
createTheFunction
createFunction
Create the Lambda function from the staged S3 deployment package. Publish is left false so the unpublished $LATEST version is what gets tested; a version is only cut once the code is known good.
2
waitUntilActive
getFunctionConfiguration
Poll the function configuration until Lambda finishes provisioning. A newly created function reports State "Pending" first; invoking before it reaches "Active" is rejected, so this step retries until the state settles.
3
testInvoke
invoke
Invoke the function synchronously with the test payload. The Tail log type returns the last 4 KB of the execution log base64-encoded, and the X-Amz-Function-Error response header is present when the handler itself threw, which a 200 status code alone would not reveal.