Amazon EC2 Instances API

Operations for launching, managing, and terminating EC2 instances

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /?Action=DescribeInstances Describe EC2 instances · Describe Instances #
Ask an LLM
“What is the state of my EC2 instances right now?”
“Can I filter instances by status or tag?”
Tell an agent
Describe instances {instance_ids}.
Show instance status for {instance_ids} including managed resources.
POST /?Action=ImportInstance Import a VM as an instance · Import Instance #
Ask an LLM
“How do I import a virtual machine as an EC2 instance?”
“Can I import a multi-volume VM with this call?”
Tell an agent
Import a VM as an instance running {platform}.
Create an import task for disk images {disk_images} with description {description}.
POST /?Action=RunInstances Launch EC2 instances · Run Instances #
Ask an LLM
“How do I launch a new EC2 instance from an AMI?”
“Can I launch several instances at once with the same settings?”
Tell an agent
Launch {min_count} instances of type {instance_type} from AMI {image_id}.
Start {min_count} instances of type {instance_type} in subnet {subnet_id}.
POST /?Action=StartInstances Start stopped EC2 instances · Start Instances #
Ask an LLM
“How do I restart an EC2 instance I stopped earlier?”
“Can I start several stopped instances in one call?”
Tell an agent
Start instances {instance_ids}.
Restart stopped instances {instance_ids} with additional info {additional_info}.
POST /?Action=StopInstances Stop EC2 instances · Stop Instances #
Ask an LLM
“How do I stop an EC2 instance without hibernating it?”
“Can I force a stopped instance to skip the OS shutdown?”
Tell an agent destructive · confirm first
Stop instances {instance_ids}.
Stop instances {instance_ids} with hibernation set to {hibernate}.
POST /?Action=RebootInstances Reboot EC2 instances · Reboot Instances #
Ask an LLM
“How do I reboot an EC2 instance remotely?”
“What happens if an instance doesn't shut down cleanly during a reboot?”
Tell an agent
Reboot instances {instance_ids}.
Reboot instances {instance_ids} and force a hard reboot if needed.
POST /?Action=TerminateInstances Terminate EC2 instances · Terminate Instances #
Ask an LLM
“How do I permanently delete EC2 instances?”
“Are EBS volumes on terminated instances deleted automatically?”
Tell an agent destructive · confirm first
Terminate instances {instance_ids}.
Force terminate instances {instance_ids} with skip OS shutdown {skip_os_shutdown}.
POST /?Action=DescribeInstanceStatus Check EC2 instance status · Describe Instance Status #
Ask an LLM
“Are my EC2 instances passing their status checks?”
“Can I see the application health status of running instances?”
Tell an agent
Describe the status of instances {instance_ids}.
Show instance status for all instances including {include_all_instances}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/amazon-ec2:amazon-ec2-instances-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

amazon-ec2-instances-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Elastic Compute Cloud Instances API
  version: '2016-11-15'
  description: Generated from AWS's published Smithy model for Amazon Elastic Compute Cloud. 8 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://ec2.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:


# --- truncated at 32 KB (231 KB total) ---
# Full source: https://artifacts.apis.io/amazon-ec2/openapi/amazon-ec2-instances-api-openapi.yml