Amazon EC2 · Arazzo Workflow

Amazon EC2 Audit Security Group Usage

Version 1.0.0

Describe a security group, then describe instances filtered by that group.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Cloud ComputingComputeInfrastructure-as-a-ServiceInfrastructureVirtual MachinesArazzoWorkflows

Provider

amazon-ec2

Workflows

audit-security-group-usage
Confirm a security group and list the instances that use it.
Chains DescribeSecurityGroups and DescribeInstances (filtered by the group) so the instances attached to a security group are surfaced in one run.
2 steps inputs: groupId outputs: reservations
1
describeGroup
Describe the target security group to confirm it exists.
2
listAttachedInstances
Describe instances filtered to those using the security group.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon EC2 Audit Security Group Usage
  summary: Describe a security group, then describe instances filtered by that group.
  description: >-
    Reports which instances a security group is protecting. The workflow
    describes the target security group to confirm it exists, then describes
    instances filtered by that group so an operator can see exactly which
    instances reference it before making changes. Every step spells out its
    request inline using the Amazon EC2 query protocol (Action and Version
    parameters) so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: instancesApi
  url: ../openapi/amazon-ec2-instances-api-openapi.yml
  type: openapi
- name: securityGroupsApi
  url: ../openapi/amazon-ec2-security-groups-api-openapi.yml
  type: openapi
workflows:
- workflowId: audit-security-group-usage
  summary: Confirm a security group and list the instances that use it.
  description: >-
    Chains DescribeSecurityGroups and DescribeInstances (filtered by the group)
    so the instances attached to a security group are surfaced in one run.
  inputs:
    type: object
    required:
    - groupId
    properties:
      groupId:
        type: string
        description: The ID of the security group to audit.
  steps:
  - stepId: describeGroup
    description: Describe the target security group to confirm it exists.
    operationId: describeSecurityGroups
    parameters:
    - name: Action
      in: query
      value: DescribeSecurityGroups
    - name: Version
      in: query
      value: '2016-11-15'
    - name: GroupId
      in: query
      value: $inputs.groupId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      describeStatus: $statusCode
  - stepId: listAttachedInstances
    description: Describe instances filtered to those using the security group.
    operationId: describeInstances
    parameters:
    - name: Action
      in: query
      value: DescribeInstances
    - name: Version
      in: query
      value: '2016-11-15'
    - name: Filter
      in: query
      value:
      - instance.group-id=$inputs.groupId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      reservations: $response.body#/reservationSet
  outputs:
    reservations: $steps.listAttachedInstances.outputs.reservations

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-audit-security-group-usage-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.