AWS EC2 REST API
Scalable cloud compute instances on demand
Amazon Elastic Compute Cloud (EC2) provides secure, resizable compute capacity in the cloud. Developers use EC2 to launch virtual servers, configure security and networking, and manage storage with complete control over computing resources. EC2 enables rapid scaling and flexible instance types optimized for compute, memory, storage, and GPU workloads.
https://ec2.amazonaws.com
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | / | Run one or more EC2 instances with specified AMI and instance type (Action=RunInstances) |
| POST | / | Describe one or more EC2 instances with filtering options (Action=DescribeInstances) |
| POST | / | Stop one or more running EC2 instances (Action=StopInstances) |
| POST | / | Start one or more stopped EC2 instances (Action=StartInstances) |
| POST | / | Terminate one or more EC2 instances permanently (Action=TerminateInstances) |
| POST | / | Describe available Amazon Machine Images (AMIs) (Action=DescribeImages) |
| POST | / | Create an EBS volume in specified availability zone (Action=CreateVolume) |
| POST | / | Attach an EBS volume to a running instance (Action=AttachVolume) |
| POST | / | Create a snapshot of an EBS volume for backup (Action=CreateSnapshot) |
| POST | / | Describe security groups and their rules (Action=DescribeSecurityGroups) |
| POST | / | Create a new security group with specified rules (Action=CreateSecurityGroup) |
| POST | / | Authorize inbound traffic rules for security group (Action=AuthorizeSecurityGroupIngress) |
| POST | / | Describe all available AWS regions and availability zones (Action=DescribeRegions) |
| POST | / | Allocate an Elastic IP address for your account (Action=AllocateAddress) |
| POST | / | Associate an Elastic IP with a running instance (Action=AssociateAddress) |
Sponsor this page
AvailableReach developers actively building with AWS EC2. See live pageview data and self-serve checkout — your slot goes live in minutes.
View inventory & pricing →Code Examples
curl -X POST 'https://ec2.amazonaws.com/' \
--data-urlencode 'Action=DescribeInstances' \
--data-urlencode 'Version=2016-11-15' \
--aws-sigv4 'aws:amz:us-east-1:ec2' \
--user 'AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY'
Use AWS EC2 from Claude / Cursor / ChatGPT
Get a hosted MCP endpoint for AWS EC2. Paste your AWS EC2 API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls AWS EC2 directly with your credentials — no local install, works on mobile.
launch_ec2_instance
Launch a new EC2 instance with specified AMI, instance type, and configuration options
manage_instance_lifecycle
Start, stop, reboot, or terminate EC2 instances based on instance IDs or tags
query_instance_status
Retrieve detailed information about EC2 instances including state, IP addresses, and metadata
manage_security_groups
Create, modify, or delete security groups and their ingress/egress rules
manage_ebs_volumes
Create, attach, detach, or snapshot EBS volumes for persistent storage
Connect in 60 seconds
Paste your AWS EC2 key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.
Connect AWS EC2 to your AI →