Amazon EC2 · Arazzo Workflow

Amazon EC2 Allocate and Associate Elastic IP

Version 1.0.0

Allocate a VPC Elastic IP, confirm the instance is running, then associate the address.

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

Provider

amazon-ec2

Workflows

allocate-and-associate-eip
Allocate a VPC Elastic IP and bind it to a running instance.
Chains AllocateAddress, a DescribeInstances running-state confirmation that branches on the instance state, and AssociateAddress to attach a stable public IP to the instance.
3 steps inputs: allocationId, instanceId outputs: associateStatus, instanceState
1
allocateAddress
Allocate an Elastic IP address scoped to a VPC.
2
confirmRunning
Describe the instance and branch on its state, only associating once the instance reports running.
3
associateAddress
Associate the Elastic IP allocation with the running instance.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon EC2 Allocate and Associate Elastic IP
  summary: Allocate a VPC Elastic IP, confirm the instance is running, then associate the address.
  description: >-
    Gives a running instance a stable public address by allocating a VPC Elastic
    IP, confirming the target instance is in the running state via
    DescribeInstances, and then associating the allocated address with the
    instance. 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: elasticIpsApi
  url: ../openapi/amazon-ec2-elastic-ips-api-openapi.yml
  type: openapi
- name: instancesApi
  url: ../openapi/amazon-ec2-instances-api-openapi.yml
  type: openapi
workflows:
- workflowId: allocate-and-associate-eip
  summary: Allocate a VPC Elastic IP and bind it to a running instance.
  description: >-
    Chains AllocateAddress, a DescribeInstances running-state confirmation that
    branches on the instance state, and AssociateAddress to attach a stable
    public IP to the instance.
  inputs:
    type: object
    required:
    - allocationId
    - instanceId
    properties:
      allocationId:
        type: string
        description: The allocation ID to associate (supplied or captured from a prior allocate).
      instanceId:
        type: string
        description: The ID of the instance to associate the Elastic IP with.
  steps:
  - stepId: allocateAddress
    description: Allocate an Elastic IP address scoped to a VPC.
    operationId: allocateAddress
    parameters:
    - name: Action
      in: query
      value: AllocateAddress
    - name: Version
      in: query
      value: '2016-11-15'
    - name: Domain
      in: query
      value: vpc
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      allocateStatus: $statusCode
  - stepId: confirmRunning
    description: >-
      Describe the instance and branch on its state, only associating once the
      instance reports running.
    operationId: describeInstances
    parameters:
    - name: Action
      in: query
      value: DescribeInstances
    - name: Version
      in: query
      value: '2016-11-15'
    - name: InstanceId
      in: query
      value: $inputs.instanceId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      state: $response.body#/reservationSet/0/instancesSet/0/instanceState/name
    onSuccess:
    - name: notReadyYet
      type: goto
      stepId: confirmRunning
      criteria:
      - context: $response.body
        condition: $.reservationSet[0].instancesSet[0].instanceState.name == 'pending'
        type: jsonpath
    - name: ready
      type: goto
      stepId: associateAddress
      criteria:
      - context: $response.body
        condition: $.reservationSet[0].instancesSet[0].instanceState.name == 'running'
        type: jsonpath
  - stepId: associateAddress
    description: Associate the Elastic IP allocation with the running instance.
    operationId: associateAddress
    parameters:
    - name: Action
      in: query
      value: AssociateAddress
    - name: Version
      in: query
      value: '2016-11-15'
    - name: AllocationId
      in: query
      value: $inputs.allocationId
    - name: InstanceId
      in: query
      value: $inputs.instanceId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      associateStatus: $statusCode
  outputs:
    associateStatus: $steps.associateAddress.outputs.associateStatus
    instanceState: $steps.confirmRunning.outputs.state

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-allocate-and-associate-eip-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.