Skip to content

Instantly share code, notes, and snippets.

@sullust
Created September 6, 2012 15:50
Show Gist options
  • Save sullust/3657678 to your computer and use it in GitHub Desktop.
Save sullust/3657678 to your computer and use it in GitHub Desktop.
Using Auto Scaling
Using Auto Scaling
Getting started with using Auto Scaling is easy. If you are signed up for the Amazon EC2 service, you are automatically registered for Auto Scaling. You simply:
Download the Auto Scaling Command Line Tools and the Amazon CloudWatch Command Line Tools from Developer Tools.
Use the as-create-launch-config command to create a Launch Configuration for your Auto Scaling Group. A Launch Configuration captures the parameters necessary to launch new Amazon EC2 instances.
Use the as-create-auto-scaling-group command to create an Auto Scaling Group. An Auto Scaling Group is a collection of Amazon EC2 instances to which you want to apply certain scaling conditions.
Use the as-put-scaling-policy command to describe each scaling action you want to take. For example, you can create one Policy that adds Amazon EC2 instances, and another that removes them.
Use the mon-put-metric-alarm Amazon CloudWatch command to create an alarm for each condition under which you want to add or remove Amazon EC2 instances, and specify the Auto Scaling Policy that you want the alarm to execute when that condition is met. You can define alarms based on any metric that Amazon CloudWatch collects. Examples of metrics on which you can set conditions include average CPU utilization, network activity or disk utilization.
Auto Scaling tracks when your conditions have been met and automatically takes the corresponding scaling action on your behalf.
Applicable Amazon CloudWatch charges will apply.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment