Amazon EC2 Auto Scaling · Arazzo Workflow

Amazon EC2 Auto Scaling Set Desired Capacity and Verify

Version 1.0.0

Manually set a group's desired capacity, verify it took effect, and review the scaling activity.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub Amazon Web ServicesAuto-ScalingComputeEC2High AvailabilityScalingArazzoWorkflows

Provider

amazon-ec2-auto-scaling

Workflows

set-desired-capacity-and-verify
Set the desired capacity of a group and confirm the resulting state and activity.
Sets the group's desired capacity, describes the group to verify the new target, and lists recent scaling activities for the group.
3 steps inputs: autoScalingGroupName, desiredCapacity, honorCooldown outputs: latestActivityId, latestActivityStatus, reportedDesiredCapacity
1
setDesiredCapacity
Set the new desired capacity for the Auto Scaling group.
2
describeGroupCapacity
Describe the group and branch on whether the reported desired capacity has already reached the requested value.
3
describeScalingActivities
List recent scaling activities for the group so the activity triggered by the capacity change can be inspected.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon EC2 Auto Scaling Set Desired Capacity and Verify
  summary: Manually set a group's desired capacity, verify it took effect, and review the scaling activity.
  description: >-
    Manually resizes an Auto Scaling group and confirms the change. The workflow
    sets the desired capacity, describes the group and branches on whether the
    reported desired capacity already matches the requested value, and then
    describes recent scaling activities for the group so the triggered activity
    can be inspected. Every step spells out the AWS query-protocol Action and
    Version inline so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-4220.50
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-4220.50
      capability_name: Capacity & Performance Management
      spec: amazon-ec2-auto-scaling-action-setdesiredcapacity-api-openapi.yml
      confidence: 0.75
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: actionDescribeautoscalinggroupsApi
  url: ../openapi/amazon-ec2-auto-scaling-action-describeautoscalinggroups-api-openapi.yml
  type: openapi
- name: actionDescribescalingactivitiesApi
  url: ../openapi/amazon-ec2-auto-scaling-action-describescalingactivities-api-openapi.yml
  type: openapi
- name: actionSetdesiredcapacityApi
  url: ../openapi/amazon-ec2-auto-scaling-action-setdesiredcapacity-api-openapi.yml
  type: openapi
workflows:
- workflowId: set-desired-capacity-and-verify
  summary: Set the desired capacity of a group and confirm the resulting state and activity.
  description: >-
    Sets the group's desired capacity, describes the group to verify the new
    target, and lists recent scaling activities for the group.
  inputs:
    type: object
    required:
    - autoScalingGroupName
    - desiredCapacity
    properties:
      autoScalingGroupName:
        type: string
        description: The name of the Auto Scaling group to resize.
      desiredCapacity:
        type: integer
        description: The new desired capacity for the group.
      honorCooldown:
        type: boolean
        description: Whether to wait for the cooldown period before initiating the scaling activity.
  steps:
  - stepId: setDesiredCapacity
    description: >-
      Set the new desired capacity for the Auto Scaling group.
    operationId: POST_SetDesiredCapacity
    parameters:
    - name: Action
      in: query
      value: SetDesiredCapacity
    - name: Version
      in: query
      value: 2011-01-01
    requestBody:
      contentType: text/xml
      payload:
        AutoScalingGroupName: $inputs.autoScalingGroupName
        DesiredCapacity: $inputs.desiredCapacity
        HonorCooldown: $inputs.honorCooldown
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      setStatus: $statusCode
  - stepId: describeGroupCapacity
    description: >-
      Describe the group and branch on whether the reported desired capacity has
      already reached the requested value.
    operationId: POST_DescribeAutoScalingGroups
    parameters:
    - name: Action
      in: query
      value: DescribeAutoScalingGroups
    - name: Version
      in: query
      value: 2011-01-01
    requestBody:
      contentType: text/xml
      payload:
        AutoScalingGroupNames:
        - $inputs.autoScalingGroupName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      reportedDesiredCapacity: $response.body#/AutoScalingGroups/0/DesiredCapacity
      minSize: $response.body#/AutoScalingGroups/0/MinSize
      maxSize: $response.body#/AutoScalingGroups/0/MaxSize
    onSuccess:
    - name: capacityApplied
      type: goto
      stepId: describeScalingActivities
      criteria:
      - context: $response.body
        condition: $.AutoScalingGroups[0].DesiredCapacity == $inputs.desiredCapacity
        type: jsonpath
    - name: capacityPending
      type: goto
      stepId: describeScalingActivities
      criteria:
      - context: $response.body
        condition: $.AutoScalingGroups[0].DesiredCapacity != $inputs.desiredCapacity
        type: jsonpath
  - stepId: describeScalingActivities
    description: >-
      List recent scaling activities for the group so the activity triggered by
      the capacity change can be inspected.
    operationId: POST_DescribeScalingActivities
    parameters:
    - name: Action
      in: query
      value: DescribeScalingActivities
    - name: Version
      in: query
      value: 2011-01-01
    requestBody:
      contentType: text/xml
      payload:
        AutoScalingGroupName: $inputs.autoScalingGroupName
        MaxRecords: 10
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      latestActivityId: $response.body#/Activities/0/ActivityId
      latestActivityStatus: $response.body#/Activities/0/StatusCode
  outputs:
    reportedDesiredCapacity: $steps.describeGroupCapacity.outputs.reportedDesiredCapacity
    latestActivityId: $steps.describeScalingActivities.outputs.latestActivityId
    latestActivityStatus: $steps.describeScalingActivities.outputs.latestActivityStatus

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-ec2-auto-scaling-set-desired-capacity-and-verify-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.