Amazon EC2 · Arazzo Workflow

Amazon EC2 Harden an Existing Security Group

Version 1.0.0

Look up a security group by name and add a scoped inbound rule to it.

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

Provider

amazon-ec2

Workflows

harden-existing-security-group
Resolve a security group and authorize one scoped inbound rule.
Chains DescribeSecurityGroups and AuthorizeSecurityGroupIngress to add a single inbound rule to an already-existing security group.
2 steps inputs: cidrIp, fromPort, groupId, ipProtocol, toPort outputs: authorizeStatus
1
resolveGroup
describeSecurityGroups
Confirm the target security group exists before adding a rule.
2
authorizeRule
authorizeSecurityGroupIngress
Authorize the requested scoped inbound rule on the security group.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon EC2 Harden an Existing Security Group
  summary: Look up a security group by name and add a scoped inbound rule to it.
  description: >-
    Adds a tightly scoped inbound rule to an existing security group. The
    workflow resolves the security group by name to confirm it exists, then
    authorizes a single inbound rule for the requested protocol, port range, and
    CIDR. 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: amazonEc2Api
  url: ../openapi/amazon-ec2-openapi.yml
  type: openapi
workflows:
- workflowId: harden-existing-security-group
  summary: Resolve a security group and authorize one scoped inbound rule.
  description: >-
    Chains DescribeSecurityGroups and AuthorizeSecurityGroupIngress to add a
    single inbound rule to an already-existing security group.
  inputs:
    type: object
    required:
    - groupId
    - ipProtocol
    - fromPort
    - toPort
    - cidrIp
    properties:
      groupId:
        type: string
        description: The ID of the security group to harden.
      ipProtocol:
        type: string
        description: The IP protocol name (tcp, udp, icmp) or number.
      fromPort:
        type: integer
        description: The start of the port range.
      toPort:
        type: integer
        description: The end of the port range.
      cidrIp:
        type: string
        description: The IPv4 CIDR range allowed by the new rule.
  steps:
  - stepId: resolveGroup
    description: Confirm the target security group exists before adding a rule.
    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:
      resolveStatus: $statusCode
  - stepId: authorizeRule
    description: Authorize the requested scoped inbound rule on the security group.
    operationId: authorizeSecurityGroupIngress
    parameters:
    - name: Action
      in: query
      value: AuthorizeSecurityGroupIngress
    - name: Version
      in: query
      value: '2016-11-15'
    - name: GroupId
      in: query
      value: $inputs.groupId
    - name: IpProtocol
      in: query
      value: $inputs.ipProtocol
    - name: FromPort
      in: query
      value: $inputs.fromPort
    - name: ToPort
      in: query
      value: $inputs.toPort
    - name: CidrIp
      in: query
      value: $inputs.cidrIp
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      authorizeStatus: $statusCode
  outputs:
    authorizeStatus: $steps.authorizeRule.outputs.authorizeStatus

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-harden-existing-security-group-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 email required.

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