Skip to content

Instantly share code, notes, and snippets.

@numan
Created July 14, 2011 16:20
Show Gist options
  • Save numan/1082784 to your computer and use it in GitHub Desktop.
Save numan/1082784 to your computer and use it in GitHub Desktop.
create an auto scaling group
#For a complete list of options see http://boto.cloudhackers.com/ref/ec2.html#boto.ec2.autoscale.group.AutoScalingGroup
ag = AutoScalingGroup(group_name='webserver-asg', load_balancers=['my-lb'],
availability_zones=['us-east-1a','us-east-1b', 'us-east-1c'],
launch_config='my-launch-config-name', min_size=2, max_size=20)
conn_as.create_auto_scaling_group(ag)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment