Skip to content

Latest commit

 

History

History
 
 

predictive-scaling

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Auto Scaling Group Predictive Scaling Example

This example deploys two Auto Scaling groups within a new VPC. One of the Auto Scaling groups contains instances that host a simple web application behind an Application Load Balancer. The second Auto Scaling group contains instances that generate recurring load against the Application Load Balancer. This stack will launch billable resources, so please keep in mind that you will be charged for any usage. You can adjust the instance types and number of instances deployed via the stack's CloudFormation parameters to reduce costs as needed.

We recommend following this blog post for an example walk-through using this stack with Predictve Scaling.

Getting Started

We recommend deploying the following Example AWS Cloud9 Environment to get started quickly with this example. Otherwise, you can attempt to run this example using your own environment with the following prerequisites installed.

Prerequisites

  • AWS CLI installed and configured with Administrator credentials.

Deployment Steps

Once you've deployed and accessed the Example AWS Cloud9 Environment execute the following steps from within the Example AWS Cloud9 Environment to deploy this example.

  1. Change directories to this example.
cd ~/environment/amazon-ec2-auto-scaling-group-examples/features/predictive-scaling
  1. Deploy the CloudFormation Stack. You will need to replace REPLACE_THIS_WITH_YOUR_KEY_PAIR_NAME with the name of an SSH key in the region you are deploying the example to.
aws cloudformation deploy \
    --template-file template.yaml \
    --stack-name preditive-scaling-example \
    --capabilities CAPABILITY_IAM \
    --parameter-overrides \
        ApplicationInstanceKeyPair=REPLACE_THIS_WITH_YOUR_KEY_PAIR_NAME \
        LoadInstanceKeyPair=REPLACE_THIS_WITH_YOUR_KEY_PAIR_NAME

Clean Up

Delete the CloudFormation Stack

aws cloudformation delete-stack --stack-name preditive-scaling-example