capabilities.work

Reconfigure Function

A 4-step recipe with Amazon Lambda. We can help you get access.

Recipe · 4 steps

Reconfigure Function

Update function configuration, wait for Active, and invoke.

  1. Apply the new version-specific settings to the function. Lambda returns the updated configuration and the resulting State.
  2. Poll the function until the configuration change settles and the State returns to Active. A Failed state branches to the failure handler.
  3. Invoke the function to confirm it still executes under the new configuration.
  4. Re-read the configuration when the update left the function in the Failed state so the caller can surface it.
What you'll need to have ready
  • FunctionName: The name of the Lambda function to reconfigure.
  • Role: A new execution role ARN for the function.
  • Handler: A new handler for the function.
  • Description: A new description for the function.
  • Timeout: A new timeout (in seconds) for the function.
  • MemorySize: A new memory size (in MB) for the function.
  • invocationPayload: The JSON event payload used to verify the reconfigured function.
For your developer

Arazzo workflow amazon-lambda:reconfigure-function, 4 operations: UpdateFunctionConfiguration → GetFunction → InvokeFunction → GetFunction. Specs on APIs.io.