Amazon EC2 Auto Scaling · Arazzo Workflow

Amazon EC2 Auto Scaling Protect Instances From Scale In

Version 1.0.0

Find a group's instances, mark them protected from scale-in, and confirm the group state.

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

Provider

amazon-ec2-auto-scaling

Workflows

protect-instances-from-scale-in
Set scale-in protection on instances in a group and verify the group.
Lists Auto Scaling instances, applies scale-in protection, and describes the group to confirm its state.
3 steps inputs: autoScalingGroupName, instanceIds, protectedFromScaleIn outputs: newInstancesProtected, protectStatus
1
describeAutoScalingInstances
Describe the Auto Scaling instances to capture details about the first instance and its group association.
2
setInstanceProtection
Set scale-in protection for the supplied instances in the group.
3
describeGroupProtection
Describe the group to confirm its new-instance scale-in protection default and current capacity.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon EC2 Auto Scaling Protect Instances From Scale In
  summary: Find a group's instances, mark them protected from scale-in, and confirm the group state.
  description: >-
    Shields specific instances from termination during scale-in. The workflow
    describes the Auto Scaling instances to capture an instance ID, sets instance
    scale-in protection for the supplied instances, and then describes the group
    to confirm its scale-in protection default and current capacity. 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-describeautoscalinggroups-api-openapi.yml
      confidence: 0.7
    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: actionDescribeautoscalinginstancesApi
  url: ../openapi/amazon-ec2-auto-scaling-action-describeautoscalinginstances-api-openapi.yml
  type: openapi
- name: actionSetinstanceprotectionApi
  url: ../openapi/amazon-ec2-auto-scaling-action-setinstanceprotection-api-openapi.yml
  type: openapi
workflows:
- workflowId: protect-instances-from-scale-in
  summary: Set scale-in protection on instances in a group and verify the group.
  description: >-
    Lists Auto Scaling instances, applies scale-in protection, and describes the
    group to confirm its state.
  inputs:
    type: object
    required:
    - autoScalingGroupName
    - instanceIds
    - protectedFromScaleIn
    properties:
      autoScalingGroupName:
        type: string
        description: The name of the Auto Scaling group.
      instanceIds:
        type: array
        description: One or more instance IDs to protect or unprotect (up to 50).
        items:
          type: string
      protectedFromScaleIn:
        type: boolean
        description: Whether the instances are protected from termination on scale-in.
  steps:
  - stepId: describeAutoScalingInstances
    description: >-
      Describe the Auto Scaling instances to capture details about the first
      instance and its group association.
    operationId: POST_DescribeAutoScalingInstances
    parameters:
    - name: Action
      in: query
      value: DescribeAutoScalingInstances
    - name: Version
      in: query
      value: 2011-01-01
    requestBody:
      contentType: text/xml
      payload:
        InstanceIds: $inputs.instanceIds
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstInstanceId: $response.body#/AutoScalingInstances/0/InstanceId
      firstInstanceState: $response.body#/AutoScalingInstances/0/LifecycleState
  - stepId: setInstanceProtection
    description: >-
      Set scale-in protection for the supplied instances in the group.
    operationId: POST_SetInstanceProtection
    parameters:
    - name: Action
      in: query
      value: SetInstanceProtection
    - name: Version
      in: query
      value: 2011-01-01
    requestBody:
      contentType: text/xml
      payload:
        InstanceIds: $inputs.instanceIds
        AutoScalingGroupName: $inputs.autoScalingGroupName
        ProtectedFromScaleIn: $inputs.protectedFromScaleIn
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      protectStatus: $statusCode
  - stepId: describeGroupProtection
    description: >-
      Describe the group to confirm its new-instance scale-in protection default
      and current capacity.
    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:
      newInstancesProtected: $response.body#/AutoScalingGroups/0/NewInstancesProtectedFromScaleIn
      desiredCapacity: $response.body#/AutoScalingGroups/0/DesiredCapacity
  outputs:
    protectStatus: $steps.setInstanceProtection.outputs.protectStatus
    newInstancesProtected: $steps.describeGroupProtection.outputs.newInstancesProtected

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-protect-instances-from-scale-in-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.