Amazon Elastic Load Balancing · Arazzo Workflow

Amazon Elastic Load Balancing Poll Target Health Until Healthy

Version 1.0.0

Register a target then poll its health until it reaches the healthy state.

1 workflow 1 source API 1 provider
View Spec View on GitHub Amazon Web ServicesHigh AvailabilityLoad BalancingNetworkingScalabilityArazzoWorkflows

Provider

amazon-elastic-load-balancing

Workflows

poll-target-health-until-healthy
Register a target and poll its health, branching on the reported state.
Chains RegisterTargets with a DescribeTargetHealth poll loop that retries while the target is initializing, ends when it becomes healthy, and fails fast if it becomes unhealthy.
3 steps inputs: targetGroupArn, targetId, targetPort outputs: healthState, unhealthyReason
1
RegisterTargets
Register the target with the target group to begin health checks.
2
checkHealth
Poll the health of the registered target and branch on its reported state, retrying while it is still initializing.
3
reportUnhealthy
Confirm the unhealthy state by reading target health one last time so the failure reason is captured in the workflow outputs.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Elastic Load Balancing Poll Target Health Until Healthy
  summary: Register a target then poll its health until it reaches the healthy state.
  description: Registers a target with an existing target group and then polls DescribeTargetHealth, branching on the reported state. While the target is still in the initial state the flow loops back and checks again; once the target reports healthy the flow ends successfully, and if it reports unhealthy the flow ends in failure. Each step spells out its request inline so the flow can be read and executed without opening the underlying OpenAPI description. The Elastic Load Balancing v2 API uses the AWS query protocol, so every operation is a GET whose inputs are carried as query parameters rather than a request body.
  version: 1.0.0
sourceDescriptions:
- name: targetsApi
  url: ../openapi/amazon-elastic-load-balancing-targets-api-openapi.yml
  type: openapi
workflows:
- workflowId: poll-target-health-until-healthy
  summary: Register a target and poll its health, branching on the reported state.
  description: Chains RegisterTargets with a DescribeTargetHealth poll loop that retries while the target is initializing, ends when it becomes healthy, and fails fast if it becomes unhealthy.
  inputs:
    type: object
    required:
    - targetGroupArn
    - targetId
    properties:
      targetGroupArn:
        type: string
        description: The ARN of the existing target group to register into.
      targetId:
        type: string
        description: The ID of the target to register and monitor.
      targetPort:
        type: integer
        description: The port the target is listening on.
        default: 80
  steps:
  - stepId: RegisterTargets
    description: Register the target with the target group to begin health checks.
    operationId: RegisterTargets
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        Action: RegisterTargets
        Version: '2015-12-01'
        TargetGroupArn: $inputs.targetGroupArn
        Targets:
        - Id: $inputs.targetId
          Port: $inputs.targetPort
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      registered: $statusCode
  - stepId: checkHealth
    description: Poll the health of the registered target and branch on its reported state, retrying while it is still initializing.
    operationId: DescribeTargetHealth
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        Action: DescribeTargetHealth
        Version: '2015-12-01'
        TargetGroupArn: $inputs.targetGroupArn
        Targets:
        - Id: $inputs.targetId
          Port: $inputs.targetPort
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      healthState: $response.body#/targetHealthDescriptions/0/targetHealth/state
      reason: $response.body#/targetHealthDescriptions/0/targetHealth/reason
    onSuccess:
    - name: targetHealthy
      type: end
      criteria:
      - condition: $response.body#/targetHealthDescriptions/0/targetHealth/state == 'healthy'
    - name: targetUnhealthy
      type: goto
      stepId: reportUnhealthy
      criteria:
      - condition: $response.body#/targetHealthDescriptions/0/targetHealth/state == 'unhealthy'
    - name: stillInitializing
      type: goto
      stepId: checkHealth
      criteria:
      - condition: $response.body#/targetHealthDescriptions/0/targetHealth/state == 'initial'
      x-retryAfter: 15
      x-retryLimit: 20
  - stepId: reportUnhealthy
    description: Confirm the unhealthy state by reading target health one last time so the failure reason is captured in the workflow outputs.
    operationId: DescribeTargetHealth
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        Action: DescribeTargetHealth
        Version: '2015-12-01'
        TargetGroupArn: $inputs.targetGroupArn
        Targets:
        - Id: $inputs.targetId
          Port: $inputs.targetPort
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      healthState: $response.body#/targetHealthDescriptions/0/targetHealth/state
      reason: $response.body#/targetHealthDescriptions/0/targetHealth/reason
      description: $response.body#/targetHealthDescriptions/0/targetHealth/description
    onSuccess:
    - name: failOut
      type: end
  outputs:
    healthState: $steps.checkHealth.outputs.healthState
    unhealthyReason: $steps.reportUnhealthy.outputs.reason

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-elastic-load-balancing-poll-target-health-until-healthy-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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