Amazon Lambda · Arazzo Workflow
Amazon Lambda Update Code and Verify
Version 1.0.0
Push new function code, wait for the update to settle, then invoke to verify.
Provider
Workflows
update-code-and-verify
Update a function's code, wait for Active, and smoke-test it.
Updates the deployment package of an existing function, polls GetFunction until the State returns to Active, and invokes the function to verify the new code responds.
1
updateCode
UpdateFunctionCode
Push the new deployment package to the function. Lambda returns the version-specific configuration with the State that resulted from the update.
2
waitForActive
GetFunction
Poll the function until the update finishes and the State returns to Active. A Failed state branches to the failure handler.
3
verifyInvoke
InvokeFunction
Invoke the function with a smoke-test payload to confirm the new code executes successfully.
4
reportFailure
GetFunction
Re-read the configuration when the update left the function in the Failed state so the caller can surface and roll back.