Auto Scaling logo

Auto Scaling

Auto Scaling

UpOpen Sourcecloudby Amazon Web Services62· JavaScript· MIT

AWS Auto Scaling API auto-adjusts EC2 instance count to match load — scaling policies, health checks, lifecycle hooks, multi-AZ distribution.

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

Native integration with ELB/CloudWatch

Watch for

Scale-out has cold-start latency (instance launch + warm-up)

First check

CreateLaunchTemplate for the instance template; CreateAutoScalingGroup for the ASG; PutScalingPolicy for scaling rules.

Auth
CORS
No
HTTPS
Yes
Signup
?
Latency
28 ms
Protocol
REST
Pricing
Stars
62

Uptime · 30-day window

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

GitHub activity

62JavaScriptMIT17 open issuesLast commit 110d ago
01

About this API

EC2 Auto Scaling is one of AWS's early core services, letting you "define min/max instance count, scale by which metrics". Most common pattern: target tracking — "keep average CPU utilization at 50%", and AWS auto-calculates required instances. Also step scaling (tiered scaling by metric thresholds) and scheduled scaling (pre-emptive scaling before known peaks). Lifecycle hooks are advanced — insert custom logic on instance launch/terminate (e.g. wait for app warm-up, persist cache). Auto Scaling Group must span multiple AZs for true HA. Forms the AWS auto-scaling trio with ELB (traffic distribution) and CloudWatch (monitoring). In container era, partially replaced by ECS Service / EKS HPA, but underneath still uses ASG.

02

What you can build

  • 1Auto-scale up at peak traffic, scale down at off-peak
  • 2Auto-replace failed EC2 instances
  • 3Rolling deployments (update some instances first, then continue)
  • 4Cost optimization (auto scale to minimum at night)
03

Strengths & limitations

Strengths

  • Native integration with ELB/CloudWatch
  • Multiple scaling policies (target tracking, step, scheduled)
  • Multi-AZ distribution for HA

Limitations

  • Scale-out has cold-start latency (instance launch + warm-up)
  • Spot instance interruptions require application-layer handling
  • Less friendly to single-instance long-lived connections (WebSocket)
04

Example request

Generic template — replace <endpoint> with the real path from the docs.
curl https://github.com/mermade/aws2openapi/<endpoint>
05

Getting started

CreateLaunchTemplate for the instance template; CreateAutoScalingGroup for the ASG; PutScalingPolicy for scaling rules.

06

FAQ

ASG vs ECS Service?+

For bare EC2 apps: ASG. For containers: ECS Service / EKS HPA (which may still use ASG underneath, but scheduling is per-container).

Can spot instances be used in ASG?+

Yes, via mixed instances policy. Spot interruptions need idempotent application handling.

07

Technical details

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

Tags

09

More from Amazon Web Services