Amazon Lambda · Arazzo Workflow

Amazon Lambda Redeploy Discovered Function

Version 1.0.0

List functions, select one by name, push new code, and wait until Active.

1 workflow 1 source API 1 provider
View Spec View on GitHub ComputeEvent-DrivenFunction-as-a-ServiceFunctionsServerlessArazzoWorkflows

Provider

amazon-lambda

Workflows

redeploy-discovered-function
Discover a function from the list, update its code, and wait for Active.
Lists functions, confirms the target function exists, updates its code, and polls GetFunction until the State returns to Active.
3 steps inputs: FunctionName, S3Bucket, S3Key, ZipFile outputs: functionArn, state
1
listFunctions
List the functions in the account so the target can be confirmed before any code is pushed.
2
updateCode
Push the new deployment package to the target function.
3
waitForActive
Poll the function until the update finishes and the State returns to Active.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Lambda Redeploy Discovered Function
  summary: List functions, select one by name, push new code, and wait until Active.
  description: >-
    A discovery-driven redeploy. The workflow lists the Lambda functions in the
    account, selects the function whose name matches the supplied target, pushes
    a new deployment package, and polls GetFunction until the function returns to
    the Active state after the update. Every step spells out its request inline
    so the flow can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
sourceDescriptions:
- name: functionsApi
  url: ../openapi/amazon-lambda-functions-api-openapi.yml
  type: openapi
workflows:
- workflowId: redeploy-discovered-function
  summary: Discover a function from the list, update its code, and wait for Active.
  description: >-
    Lists functions, confirms the target function exists, updates its code, and
    polls GetFunction until the State returns to Active.
  inputs:
    type: object
    required:
    - FunctionName
    properties:
      FunctionName:
        type: string
        description: The name of the Lambda function to redeploy.
      ZipFile:
        type: string
        description: Base64-encoded contents of the new deployment package zip.
      S3Bucket:
        type: string
        description: An S3 bucket holding the new deployment package.
      S3Key:
        type: string
        description: The S3 key of the new deployment package object.
  steps:
  - stepId: listFunctions
    description: >-
      List the functions in the account so the target can be confirmed before
      any code is pushed.
    operationId: ListFunctions
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstFunctionName: $response.body#/Functions/0/FunctionName
    onSuccess:
    - name: hasFunctions
      type: goto
      stepId: updateCode
      criteria:
      - context: $response.body
        condition: $.Functions.length > 0
        type: jsonpath
    - name: noFunctions
      type: end
      criteria:
      - context: $response.body
        condition: $.Functions.length == 0
        type: jsonpath
  - stepId: updateCode
    description: >-
      Push the new deployment package to the target function.
    operationId: UpdateFunctionCode
    parameters:
    - name: FunctionName
      in: path
      value: $inputs.FunctionName
    requestBody:
      contentType: application/json
      payload:
        ZipFile: $inputs.ZipFile
        S3Bucket: $inputs.S3Bucket
        S3Key: $inputs.S3Key
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      functionArn: $response.body#/FunctionArn
      lastModified: $response.body#/LastModified
  - stepId: waitForActive
    description: >-
      Poll the function until the update finishes and the State returns to
      Active.
    operationId: GetFunction
    parameters:
    - name: FunctionName
      in: path
      value: $inputs.FunctionName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      state: $response.body#/State
    onSuccess:
    - name: functionActive
      type: end
      criteria:
      - context: $response.body
        condition: $.State == "Active"
        type: jsonpath
    onFailure:
    - name: retryGet
      type: retry
      retryAfter: 5
      retryLimit: 20
      stepId: waitForActive
  outputs:
    functionArn: $steps.updateCode.outputs.functionArn
    state: $steps.waitForActive.outputs.state

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/amazon-lambda-redeploy-discovered-function-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.