Amazon Elastic Compute Cloud logo

Amazon Elastic Compute Cloud

Amazon Elastic Compute Cloud

UpFreeOpen Sourcecloudby Amazon Web Services62· JavaScript· MIT

Amazon EC2 API provisions and manages virtual machine instances — the core IaaS service in AWS.

Visit site ↗Source ↗Health checked 9h ago
Use it when

Instance types span CPU / memory / GPU / network optimized

Watch for

Boot time spans tens of seconds to minutes — not for instant scaling

First check

Create IAM credentials in the AWS Console or CLI; call EC2.runInstances via SDK. For production, manage with Terraform, CDK, or CloudFormation.

Auth
api_key
CORS
No
HTTPS
Yes
Signup
Required
Latency
12 ms
Protocol
REST
Pricing
paid
Stars
62

Uptime · 30-day window

Probes: 1Uptime: 100%Avg latency: 12ms

GitHub activity

62JavaScriptMIT17 open issuesLast commit 110d ago
01

About this API

EC2 launched in 2006 as one of the first AWS services, providing on-demand VM compute. Developers create instances, attach security groups and EBS volumes, set user-data init scripts via API and SSH into a server within tens of seconds. Instance types span general-purpose, compute-, memory-, GPU-, and ARM-optimized families, billed hourly (or per-second on Linux).

EC2 with Auto Scaling, ELB, and VPC forms the backbone of traditional cloud architecture. Spot instances tap AWS spare capacity at 10–30% of on-demand pricing, with forced reclamation risk — ideal for fault-tolerant batch work. The recent trend is moving stateless workloads to Lambda or ECS Fargate, keeping EC2 for long-running jobs, stateful services, and self-managed Kubernetes.

02

What you can build

  • 1Spin up ephemeral EC2 instances for batch jobs
  • 2Build auto-scaling groups for traffic spikes
  • 3Distribute standard server images via AMIs
  • 4Provide compute for long-running jobs Lambda cannot serve
03

Strengths & limitations

Strengths

  • Instance types span CPU / memory / GPU / network optimized
  • Deep integration across AWS
  • Spot instances cut cost up to 90%

Limitations

  • Boot time spans tens of seconds to minutes — not for instant scaling
  • Operational overhead (patching, scaling) is higher than serverless
04

Example request

Generic template — replace <endpoint> with the real path from the docs.
curl https://github.com/mermade/aws2openapi/<endpoint> \
  -H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.
05

Getting started

Create IAM credentials in the AWS Console or CLI; call EC2.runInstances via SDK. For production, manage with Terraform, CDK, or CloudFormation.

06

FAQ

Is there an EC2 free tier?+

First 12 months: 750 hours/month of t2.micro or t3.micro. Production workloads are paid.

Spot vs On-Demand?+

Spot suits fault-tolerant batch workloads at lower cost; On-Demand or Savings Plans suit stable production services.

How do I auto-configure an instance at launch?+

Use user-data scripts for one-shot setup, or layer on Systems Manager / Ansible / config-management tools for ongoing config.

07

Technical details

CORS: NoHTTPS: YesSignup: YesOpen source: Yes
Auth type
api_key
Pricing
paid
Protocols
REST
SDKs
python, javascript, java, go, ruby, csharp
Response time
12 ms
Last health check
5/12/2026, 7:36:33 AM
08

Endpoints

Parsed from the OpenAPI spec. Showing 12 of 1182 non-deprecated endpoints.

GET
/#Action=AcceptAddressTransfer
Address:query*TagSpecification:queryDryRun:queryAction:query*Version:query*
POST
/#Action=AcceptAddressTransfer
Action:query*Version:query*
GET
/#Action=AcceptReservedInstancesExchangeQuote
DryRun:queryReservedInstanceId:query*TargetConfiguration:queryAction:query*Version:query*
POST
/#Action=AcceptReservedInstancesExchangeQuote
Action:query*Version:query*
GET
/#Action=AcceptTransitGatewayMulticastDomainAssociations
TransitGatewayMulticastDomainId:queryTransitGatewayAttachmentId:querySubnetIds:queryDryRun:queryAction:query*+1 more
POST
/#Action=AcceptTransitGatewayMulticastDomainAssociations
Action:query*Version:query*
GET
/#Action=AcceptTransitGatewayPeeringAttachment
TransitGatewayAttachmentId:query*DryRun:queryAction:query*Version:query*
POST
/#Action=AcceptTransitGatewayPeeringAttachment
Action:query*Version:query*
GET
/#Action=AcceptTransitGatewayVpcAttachment
TransitGatewayAttachmentId:query*DryRun:queryAction:query*Version:query*
POST
/#Action=AcceptTransitGatewayVpcAttachment
Action:query*Version:query*
GET
/#Action=AcceptVpcEndpointConnections
DryRun:queryServiceId:query*VpcEndpointId:query*Action:query*Version:query*
POST
/#Action=AcceptVpcEndpointConnections
Action:query*Version:query*

1170 more endpoints not shown. See the OpenAPI spec for the full list.

09

Tags

10

More from Amazon Web Services